Root <App> Component
component in app/pages/_app.ts
to initialize pages. You can modify it to do amazing things like:
- Persisting layout between page changes
- Custom error handling using
componentDidCatch
- Add global CSS
_app.tsx
file looks like this:
prop is the active page
, so whenever you navigate between routes, Component
will change to the new page
. Therefore, any props you send to will be received by the page
.