
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.
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 Images, Fonts, and Files | Create React App
Adding Images, Fonts, and Files With webpack, using static assets like images and fonts works similarly to CSS. You can import a file right in a JavaScript module. This tells webpack to include that file in …
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.
Deployment | Create React App
Connect your Create React App repo and pick a branch. If you're looking for a Create React App+Amplify starter, try the create-react-app-auth-amplify starter that demonstrates setting up auth …
Setting Up Your Editor | Create React App
Start your app by running npm start, and start debugging in VS Code by pressing F5 or by clicking the green debug icon. You can now write code, set breakpoints, make changes to the code, and debug …
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 and replace …
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 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 …
Creating a Production Build | Create React App
npm run build creates a build directory with a production build of your app. Inside the build/static directory will be your JavaScript and CSS files. Each filename inside of build/static will contain a …