Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

alex32's avatar
Level 2

Jetstream for React

I've installed Jetstream-Inertia and it works fine, but Inertia defaults to Vue, and I need React. I followed these steps [1] but it failed on page reload with missing files.

How do I install Jetstream-Inertia for React? There must be an option but I can't find it.

PHP 8.4.2 — Laravel 11.36.1

Thanks

0 likes
5 replies
jlrdw's avatar

Can't you just use react with laravel, do you need jetstream?

alex32's avatar
Level 2

Thanks but that link works with Mix (not Vite). This link [1] also doesn't work | npm errors

I'll keep Jetstream inertia-vue as is, and I'll install Inertia-React on top of it.

Inertia server is the same , I just need to install the client-side for Inertia-React (in Docker). Not sure why they made it so complicated to install Jetstream-React though..

npm install @inertiajs/react

The problem is that the npm above generates quite a few Errors (below) , which I turned to Warnings by adding the flag --force at the end. I'll check how far this'll go..

[1] https://github.com/ozziexsh/laravel-jetstream-react

https://inertiajs.com/client-side-setup

alex32's avatar
alex32
OP
Best Answer
Level 2

So, after trying various options and posts from SOver and Medium, here is the outcome:

My requirements: have all Jetstream features + React. But Jetstream gets installed with Inertia-Vue (currently) so I've installed Breeze + Inertia-React + 2FA for Laravel [1] and I got the job done.

[1] https://packagist.org/packages/pragmarx/google2fa-laravel

Please or to participate in this conversation.