Why I love Create React App
Create React App is a great React app starter and runner.
- Create React App GitHub
- Create React App User Guide
- Awesome Create React App. Feel free to file issue or suggest articles, videos and other useful resources via Pull Requests.
Before Create React App I always copy-paste webpack config and other *rc files from previous applications to each new application or even playground.
Create React App provides simple cli command to create application with the initial project structure, install dependencies and configure package.json scripts (run / build / test).
npm install -g create-react-app
create-react-app my-app
cd my-app/
npm start # yarn start
And there are no configuration. Developers can’t configure webpack, babel presets until ejection.
If you’re a power user and you aren’t happy with the default configuration, you can “eject” from the tool and use it as a boilerplate generator.
Running
npm run eject
copies all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. Commands likenpm start
andnpm run build
will still work, but they will point to the copied scripts so you can tweak them. At this point, you’re on your own.