Create React App

5.1.0 · deprecated · verified Sun Apr 19

Create React App (CRA) is an official command-line interface (CLI) tool for quickly setting up new single-page React applications with zero build configuration. It abstracts away the complex setup of tools like Webpack, Babel, ESLint, and Jest, providing a pre-configured development environment out of the box. The latest version is 5.1.0, though significant updates were last documented in 5.0.1 (April 2022). CRA includes major upgrades to underlying tooling like webpack 5, Jest 27, ESLint 8, and PostCSS 8, along with support for React 18's `createRoot` API and Fast Refresh. While once the primary tool for new React projects, it is now officially deprecated for new applications and in maintenance mode, receiving only critical bug fixes and updates to support newer React versions. It differentiates itself by offering a fully managed, opinionated build setup, aiming for simplicity and a consistent developer experience, making it historically ideal for learning React or starting new projects without extensive build tooling knowledge.

Common errors

Warnings

Install

Quickstart

Demonstrates how to scaffold a new React application using `npx` and start its development server, including an example for TypeScript.

npx create-react-app my-new-app
cd my-new-app
npm start

// To create a TypeScript project:
npx create-react-app my-ts-app --template typescript
cd my-ts-app
npm start

view raw JSON →