Views
Last updated
Was this helpful?
Last updated
Was this helpful?
Gravity has a custom component that serves two purposes:
Houses global components that are common to all views like and .
When creating a new , the component is automatically passed to the element
prop of the Route
component and wrapped around the custom view defined in the .
This means that the View
component is a wrapper around all of your UI views and can show a , create a or from anywhere in your application.
To add a new view to your application, you add a new view file in the /client/src/views
directory and
You can also generate new views quickly using the