Hello Devs,

In this tutorial, we are going to learn how to install react in laravel app.


Run this command:

composer require laravel/ui


Install React

php artisan ui react


Install React with Auth

php artisan ui react --auth


Install NPM

npm install


Run NPM

npm run dev


I hope this example helps you.