encore-inertia
Installation
SKILL.md
encore-inertia
Inertia.js adapter for Encore.ts. Lets you build React SPAs driven by Encore raw endpoints — no client-side router needed.
Quick Reference
| Export | Import path | Purpose |
|---|---|---|
createInertiaAdapter |
encore-inertia |
Create server-side adapter (render, share, getAssetTags) |
mountInertiaApp |
encore-inertia/react |
Mount React app on the client |
Installation
npm install encore-inertia
npm install react react-dom @inertiajs/react # peer deps for React client
npm install -D vite @vitejs/plugin-react # build tooling