marko/inertia-react

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

Maintainers

Package info

github.com/marko-php/marko-inertia-react

Type:marko-module

pkg:composer/marko/inertia-react

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

0.5.0 2026-05-02 00:43 UTC

This package is auto-updated.

Last update: 2026-05-02 01:39:06 UTC


README

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