React JS Frontend Laravel Backend

React JS Frontend Laravel Backend

For Laravel 5.5+ projects:

php artisan preset react

For Laravel 7+ projects:

composer require laravel/ui
php artisan ui react
n857j24br7cekon5wcrl.png (800×425)

Run the command “npm install” to install all the javascript packages necessary for our project.

When we install a dependency with npm install, a node_modules directory is automatically generated where the installed packages are saved. Also it is generate a package-lock.json file who is responsible for keeping track of the changes made within node_modules or when changes are made to the file package.json

Leave a Reply

Close Menu