gitmyhub

create-react-app

JavaScript ★ 37 updated 7y ago ⑂ fork

Create React apps with no build configuration.

Create React App sets up a fully working React project with one command, wiring up Webpack, Babel, and ESLint for you so you can start writing React code immediately without configuring build tools.

JavaScriptReactWebpackBabelESLintsetup: easycomplexity 1/5

Create React App

This project solves a common frustration: starting a new React web app usually requires tedious setup of build tools, configuration files, and dependencies. Create React App automates all of that. You run one command, and you get a ready-to-code project with everything wired up—no configuration needed.

Here's how simple it is: install the tool globally with npm, run create-react-app my-app, then npm start. That's it. Your app launches in a browser with live reload, so changes show up instantly. When you're done building, npm run build prepares a minified, optimized version ready for the internet. Under the hood, the tool silently handles complex build machinery (Webpack, Babel, ESLint, and others), but you don't see or touch any of it.

This is built for developers getting started with React or teams shipping small to medium-sized web apps quickly. If you just want to write React code without wrestling with build configuration, this removes that friction entirely. The tradeoff is intentional: the tool doesn't support advanced features like server-side rendering or CSS modules, because adding configurability would defeat the purpose—the whole idea is simplicity and a consistent experience across projects.

There's an escape hatch if you outgrow it: run npm run eject, and all the hidden configuration gets copied into your project so you can customize it. That's permanent though—once you eject, you manage the build yourself. Most projects don't need to, and the creators explicitly say you shouldn't feel pressured to. The curated defaults work well for the majority of React apps, and the tool gets smarter without you having to think about it.

Where it fits