Modern monolith framework for building SPAs without APIs. Combine server-side framework power with React/Vue/Svelte frontends.
Inertia replaces your view layer - controllers return JavaScript page components instead of server-side templates. The component intercepts clicks for XHR visits, providing SPA experience without full page reloads.
| Forms | forms.md | Form component, useForm helper, validation, error handling | | Links & Navigation | links.md | Link component, manual visits, active states | | Validation | validation.md | Server-side validation, error bags, error display | | Pages & Layouts | pages-layouts.md | Page components, persistent layouts, default layouts |
使用 Inertia.js 建立現代整體應用程式 - 將伺服器端框架(Laravel、Rails 等)與 React/Vue/Svelte 前端結合,而無需建立 API。在建立 Inertia 頁面和佈局、使用 Link 元件進行導航、使用 Form 元件或 useForm 掛鉤建立表單、處理驗證和錯誤、管理共用資料和 props、實現身分驗證和授權、使用路由器的手動存取、使用部分重新載入、設定持久性佈局或設定用戶端設定時使用。 來源:1naichii/ai-code-tools。