Skip to main content

Layout

In some pages, we need to share some UI, here we agree to use layout.tsx to implement it.
  • layout.tsx is used to define the layout
The above layout file will be rendered as follows:
  • /dashboard page will be rendered as DashboardLayout component
  • /dashboard/settings page will be rendered as DashboardLayout component, and Outlet will be replaced with SettingsPage component