If you need add react in your projects of laravel this is very easy and simple.
This command create configuration and base files of the first component resources/js/ & resources/js/components/Example.js, you need update Example.js
This configuration will be enough to test our application.
For development mode you can run this commands in differents terminals:
npm run watch
php artisan serve
Build for production:
npm run prod
Source code: https://github.com/abelhOrihuela/test-laravel-react
Thanks for reading...