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。