
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 …
Deployment | Create React App
Since Create React App is completely platform-agnostic, there’s no need to explicitly use Node. The build folder with static assets is the only output produced by Create React App.
Available Scripts | Create React App
npm run build Builds the app for production to the build folder. It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and …
Updating to New Releases | Create React App
Create React App creates the project with the latest version of react-scripts so you’ll get all the new features and improvements in newly created apps automatically.
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 …
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 …
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 …
Using HTTPS in Development | Create React App
To avoid having to set the environment variable each time, you can either include in the npm start script like so:
Running Tests | Create React App
Create React App uses Jest as its test runner. To prepare for this integration, we did a major revamp of Jest so if you heard bad things about it years ago, give it another try. Jest is a Node …
Adding Custom Environment Variables | Create React App
Since Create React App produces a static HTML/CSS/JS bundle, it can’t possibly read them at runtime. To read them at runtime, you would need to load HTML into memory on the server …