The easiest way to get started on a new React project is by using a starter kit.
This page describes setting up a single-page application with everything you need for a comfortable development workflow, including linting, testing, production optimizations, and more. Full-featured tools like these require some time and disk space to install.
Create React App
npm install -g create-react-app create-react-app my-app cd my-app npm start
If you have npm 5.2.0+ installed, you may use npx instead.
npx create-react-app my-app cd my-app npm start
Create React App doesn’t handle backend logic or databases; it just creates a frontend build pipeline, so you can use it with any backend you want. It uses build tools like Babel and webpack under the hood, but works with zero configuration.
When you’re ready to deploy to production, running
npm run build will create an optimized build of your app in the
build folder. You can learn more about Create React App from its README and the User Guide.
Other Starter Kits
They slightly differ in their focus but are all production-ready, well-maintained, and don’t require configuration to get started.
You can also check out a list of other kits contributed by the community.
If you prefer to configure a project manually, see Installing React in the next section.