Creating a Layout
Hana automatically detects your layout component by looking for a_layout.tsx file in the pages directory. The _layout.tsx file should export a React component that will be rendered while a page is being fetched.
src/pages/_layout.tsx
Scoped Layout Components
Hana allows you to have multiple_layout.tsx files. For example, you can have a _layout.tsx file in the pages/users directory that will be used for all pages in the /users directory.
_layout.tsx file in the pages/users directory will be used for all pages in the /users directory. The _layout.tsx file in the pages directory will be used for all other pages.
Loading Layouts
You can also create layouts that show up only a page is being loaded by adding a_loading file. This uses React’s Suspense API under the hood, so you can use it with any asynchronous data fetching library.
src/pages/_loading.tsx
_layout files, your loading layout files can also be scoped to particular folders, and you can have as many as you need in your application

