Ship a single-page app without building an API. Inertia bridges your server-side controllers directly to React, Vue, and Svelte components. No REST endpoints, no GraphQL schemas, and no client-side state store to keep in sync.

Routing stays on the server.

Keep routing, controllers, middleware, authorization, and data loading on your backend. Controllers return a page name and its props, and Inertia renders the component.

Bring the backend you already use.

Inertia works with Laravel Rust, Laravel Go, Laravel PHP, Rails, Django, Phoenix, and more. Keep your language, ORM, and conventions.

React, Vue, or Svelte.

Write your pages in React, Vue, or Svelte with official adapters and native helpers for links, forms, and scrolling. Your backend stays the same.

resources/js/pages/users.tsx
1import { Link } from '@inertiajs/react'
2
3export default function Users({ users }: { users: User[] }) {
4 return users.map((user) => (
5 <div key={user.id}>
6 <Link href={`/users/${user.id}`}>{user.name}</Link>
7 <p>{user.email}</p>
8 </div>
9 ))
10}

Forms without the plumbing.

Submit forms, track file upload progress, and render server-side validation errors automatically. Add live validation as users type with Precognition.

Fast first loads, ready for search.

Enable server-side rendering so visitors and search crawlers receive complete HTML on the initial request, then hydrate into a full single-page app.

Render now, load the rest after.

Send the fast data first so the page paints immediately, then let Inertia load slower queries in the background after mount.

Infinite scrolling, in one component.

One component on the page and one line on the server, with the URL keeping up as you scroll.

Everything a modern app expects.

Partial reloads, live props, prefetching, optimistic updates, and history encryption ship out of the box.

  • Data

    Partial reloads

    Reload only the props that changed, and Inertia merges them into the current page.

    Read the docs
  • Data

    Shared data

    Share common data like the signed-in user across every page from one place, merged automatically with controller props.

    Read the docs
  • Data

    Live props

    Subscribe props to server-side broadcast events so the page updates in real time whenever data changes.

    Read the docs
  • Data

    Polling

    Refresh page data on an interval with a single hook that pauses in background tabs and cleans up on unmount.

    Read the docs
  • Navigation

    Prefetching

    Preload the next page in the background on hover or mount so navigations feel instant.

    Read the docs
  • Navigation

    Instant visits

    Mount the target page component immediately while the server request runs in the background, then merge in the real props.

    Read the docs
  • Navigation

    Optimistic updates

    Update the UI immediately without waiting for the server, and roll back automatically if the request fails.

    Read the docs
  • Production

    History encryption

    Encrypt browser history state so sensitive pages can't be revealed with the back button after signing out.

    Read the docs
  • Production

    Asset versioning

    Detect new frontend builds automatically and trigger a full reload on the next navigation so users never run stale assets.

    Read the docs

Inertia.js FAQ

Start building with Inertia.

Read the documentation, or spin up a new app with a Laravel starter kit preconfigured for React, Vue, or Svelte.