Create React App (CRA)
Deprecated
Do not use for new projects. Use Vite instead.
What is itโ
Create React App (CRA) was an officially-supported CLI tool by Meta for bootstrapping React projects with a pre-configured webpack setup, including Babel, ESLint, and dev server.
Why it's deprecatedโ
- Officially deprecated by the React team โ React's website now says "Create React App has been deprecated" (Feb 2025 blog post).
- Unmaintained since ~2022 โ last meaningful commit Sep 2022; 1,500+ open issues.
- Uses webpack under the hood โ inherits all of webpack's performance problems.
- No modern React features โ doesn't support React Server Components, streaming, or React 18+ architecture.
- React docs now recommend Vite โ the official "Creating a React App" page recommends Vite, Next.js, or React Router v7.
Recommended replacementโ
Vite for SPAs; Next.js or React Router v7 for full-stack React.
Migration pathโ
- Create a new Vite project:
npm create vite@latest my-app -- --template react-ts - Copy
src/files over; adjust entry point (main.tsxinstead ofindex.js) - Move
public/index.htmlto rootindex.htmland add<script type="module" src="/src/main.tsx"></script> - Replace
REACT_APP_*env vars withVITE_*prefixed ones - Replace
react-scriptsnpm scripts withvite,vite build,vite preview - Remove
react-scriptsfrom dependencies - Migrate Jest tests to Vitest โ the API surface is similar, but expect manual work around jsdom setup, module transforms, mocks, and React Testing Library configuration