Skip to content
Manuele J Sarfatti edited this page Oct 27, 2019 · 10 revisions

Create React App Laravel

Requirements

A Laravel 6 project, preferably pristine.

Getting Started

In your Laravel folder:

npx create-react-app . --scripts-version laravel-react-scripts

npx create-react-app-laravel

FAQ

Can I add a React app in an existing Laravel project?
Yes you can. But know this:

  1. 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.
  2. 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
Clone this wiki locally