Gravity has a custom <View> component that serves two purposes:
  1. 1.
    Houses global components that are common to all views (notification, modal)
When creating a new route, your view component is automatically passed to the render method and then rendered inside the ViewContext. This means that you can show a modal, create a banner notification or handle an error from anywhere in your application.

Creating New Views

To add a new view to your application, you add a new view file in the /client/src/views directory and add a new route.
You can also generate new views quickly using the toolbelt.