forked from facebook/create-react-app
-
Notifications
You must be signed in to change notification settings - Fork 6
Home
Manuele J Sarfatti edited this page Oct 27, 2019
·
10 revisions
A Laravel 6 project, preferably pristine.
In your Laravel folder:
npx create-react-app . --scripts-version laravel-react-scripts
npx create-react-app-laravel
Can I add a React app in an existing Laravel project?
Yes you can. But know this:
-
create-react-app-laravel lives in the
/resources/src
folder, so if you already have such folder make sure you rename it to something else. - Every time you
yarn build
the app the entire content of/public
will be wiped out, and rebuilt sourcing the contents of/resources/src/public