frontend/src/pages/ and are automatically resolved by Inertia.
Creating a Page Component
Page components are standard React components that receive typed props:Directory Structure
Organize pages to match your route structure:Using the CLI Generator
Generate page components with the CLI:Page Component Patterns
List Page
Display a collection of items:Detail Page
Show a single item:Form Page
Create or edit items using Inertia’s<Form> component:
Navigation with Inertia
Use Inertia’sLink component for SPA-style navigation:
Programmatic Navigation
Navigate programmatically using therouter:
Shared Data
Access shared data that’s available on every page:Layouts
Create reusable layouts for your pages:Summary
| Pattern | Purpose |
|---|---|
| Index pages | Display lists of items |
| Show pages | Display single item details |
| Create/Edit pages | Forms for creating/editing |
| Layouts | Shared page structure |
<Link> component | SPA navigation |
<Form> component | Declarative form handling |
router | Programmatic navigation |