Create React App logo

Create React App

by Facebook

Create React App is a tool to bootstrap React applications with no build configuration. It offers a modern build setup with no lock-in.

View on GitHub

Last updated: N/A

What is Create React App?

Create React App is a comfortable environment for learning React, and is the best way to start a new single-page application in React. It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production.

How to use Create React App?

To use Create React App, you typically run npx create-react-app my-app in your terminal. Then, navigate into the project directory (cd my-app) and start the development server with npm start. The app will be available at http://localhost:3000.

Key features of Create React App

  • Zero configuration setup

  • Fast refresh

  • Optimized for production

  • Built-in testing environment

Use cases of Create React App

  • Building single-page applications

  • Prototyping React components

  • Learning React

  • Developing small to medium-sized web applications

FAQ from Create React App

How do I deploy my Create React App?

Refer to the deployment documentation at https://facebook.github.io/create-react-app/docs/deployment

How do I run tests?

Use the npm test command to launch the test runner in interactive watch mode.

How do I build the app for production?

Use the npm run build command to create an optimized build in the build folder.

What is npm run eject?

This command removes the single build dependency from your project, giving you full control over the configuration files. However, it's a one-way operation.

Where can I find more information?

Visit the Create React App documentation at https://facebook.github.io/create-react-app/docs/getting-started