Basic pages
Layouts
Layouts wrap pages and persist across navigation. Createlayout.tsx at any level:
/dashboard/settings renders inside both the root layout and the dashboard layout.
Dynamic routes
Use brackets for dynamic segments:usePageContext hook:
Catch-all routes
Use[...segments] to match multiple path segments:
MDX pages
Rename any page to.mdx to write content in Markdown with JSX:
usePageContext() from veryfront/context:
Client components
By default, components render on the server. Add'use client' to make a component interactive:
Navigation
Use theLink component for client-side navigation:
Next
- Data Fetching: load data on the server or at build time
- API Routes: create backend endpoints
Related
veryfront/router: router API referenceveryfront/context: params, page data, and frontmatter hooks