marko/inertia-react

React companion for marko/inertia - configuration and frontend marker binding
60 1
Install
composer require marko/inertia-react
Latest Version:0.8.5
PHP:^8.5
License:MIT
Last Updated:Jul 26, 2026
Links: GitHub  ·  Packagist
Maintainer: markshust

marko/inertia-react

React companion for marko/inertia - configuration defaults and a frontend marker binding for React.

Installation

composer require marko/inertia-react

Quick Example

use Marko\Inertia\Inertia;
use Marko\Routing\Http\Request;
use Marko\Routing\Http\Response;

class DashboardController
{
    public function __construct(
        private readonly Inertia $inertia,
    ) {}

    public function index(Request $request): Response
    {
        return $this->inertia->render(
            request: $request,
            component: 'Dashboard',
        );
    }
}

Documentation

Full usage, API reference, and examples: marko/inertia-react

Related Packages

marko/testing

Testing utilities for the Marko framework - fakes, assertions, and Pest integrat...

129 0
marko/inertia

Inertia.js protocol integration for the Marko Framework - middleware, response f...

77 1
marko/debugbar

Development debugbar and request profiler for the Marko Framework with request,...

36 1
chedaroo/inertia-marko

The Marko adapter for Inertia.js.

4 2