
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 …
Running Tests | Create React App
It is well suited for unit, integration, and end-to-end testing of React components and applications. It works more directly with DOM nodes, and therefore it's recommended to use with jest-dom …
Adding TypeScript | Create React App
Global installs of create-react-app are no longer supported. To add TypeScript to an existing Create React App project, first install it:
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 …
Adding Custom Environment Variables | Create React App
Environment variables are embedded into the build, meaning anyone can view them by inspecting your app's files. The environment variables are embedded during the build time. Since Create …
Updating to New Releases | Create React App
create-react-app is a global command-line utility that you use to create new projects. react-scripts is a development dependency in the generated projects (including this one).
Available Scripts | Create React App
Available Scripts In the project directory, you can run: npm start Runs the app in the development mode. Open http://localhost:3000 to view it in the browser. The page will reload if you make …
Custom Templates | Create React App
Custom Templates enable you to select a template to create your project from, while still retaining all of the features of Create React App. You'll notice that Custom Templates are always …
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 …
Advanced Configuration | Create React App
Advanced Configuration You can adjust various development and production settings by setting environment variables in your shell or with .env. Note: You do not need to declare …