How to use a Grid data as a Component, call from other view?

I’m trying use grid data table as component, and import into a view. But I don’t know how to use? Is there anyone reference about it? Can you help me. Thank you.

You can find plenty of code examples how to setup Grid on this page

https://vaadin.com/components/vaadin-grid/java-examples