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

BladeOfGaladrial's avatar

Setup for React SSR with Inertiajs in Laravel

I am having some trouble finding and understanding on how can I setup react with ssr in my laravel app. It is using blade but I want to move it to react and also be able to use SSR and I am having trouble finding reliable guide online

0 likes
1 reply
JussiMannisto's avatar

Blade is only used to create HTML skeleton, which is then rendered server-side with Node. You shouldn't try to get rid of the Blade file.

https://inertiajs.com/server-side-rendering

The easiest way to see the SSR setup is to install a starter kit with Breeze in a fresh Laravel project:

composer require laravel/breeze
php artisan breeze:install react --ssr

Then you need to run the SSR renderer process in the background:

php artisan inertia:start-ssr

This is assuming you already have a web server and the Vite development server set up and running, e.g. through Herd or composer run dev.

Please or to participate in this conversation.