
Getting Started | Create React App
You can now optionally start a new app from a template by appending --template [template-name] to the creation command. If you don't select a template, we'll create your project with our base template.
Adding TypeScript | Create React App
If you are currently using create-react-app-typescript, see this blog post for instructions on how to migrate to Create React App. Constant enums and namespaces are not supported, you can learn …
Updating to New Releases | Create React App
When you run npx create-react-app my-app it automatically installs the latest version of Create React App. If you've previously installed create-react-app globally via npm install -g create-react-app, …
Adding Bootstrap | Create React App
React Bootstrap is the most popular option that strives for complete parity with Bootstrap. reactstrap is also a good choice for projects looking for smaller builds at the expense of some features. Each …
Adding a Sass Stylesheet | Create React App
Now you can rename src/App.css to src/App.scss and update src/App.js to import src/App.scss. This file and any other file will be automatically compiled if imported with the extension .scss or .sass. To …
Custom Templates | Create React App
Note: this feature is available with [email protected] and higher. Custom Templates enable you to select a template to create your project from, while still retaining all of the features of Create React App.
Adding a Router | Create React App
Create React App doesn't prescribe a specific routing solution, but React Router is the most popular one.
Making a Progressive Web App | Create React App
After running the build script, create-react-app will give instructions for one way to test your production build locally and the deployment instructions have instructions for using other methods.
Installing a Dependency | Create React App
Oct 24, 2019 · The generated project includes React and ReactDOM as dependencies. It also includes a set of scripts used by Create React App as a development dependency. You may install other …
Troubleshooting | Create React App
If you're seeing this error, you're likely using an old version of react-scripts. You can either fix it by avoiding a dependency that uses modern syntax, or by upgrading to react-scripts@>=2.0.0 and …