create-react-app
is a project aimed at getting you up to speed with React in no time. It provides a ready-made React application starter, so you can dive into building your app without having to deal with Webpack and Babel configurations.npx
, which is an easy way to download and execute Node.js commands without installing them. npx
comes with npm
(since version 5.2) and if you don’t have npm installed already, do it now from https://nodejs.org (npm is installed with Node).npx create-react-app <app-name>
, npx
is going to download the most recent create-react-app
release, run it, and then remove it from your system. This is great because you will never have an outdated version on your system, and every time you run it, you’re getting the latest and greatest code available.create-react-app
created a files structure in the folder you told (todolist
in this case), and initialized a Git repository.package.json
file, so you can immediately start the app by going into the folder and run npm start
.npm start
, create-react-app
added a few other commands:npm run build
: to build the React application files in the build
folder, ready to be deployed to a servernpm test
: to run the testing suite using Jestnpm eject
: to eject from create-react-app
create-react-app
has done enough for you, but you want to do more than what it allows.create-react-app
is a set of common denominator conventions and a limited amount of options, it’s somewhat guaranteed that at some point your needs will require you something unique that outgrows the capabilities of create-react-app
.config
and scripts
. Those contain all the configuration you need and now you can start editing it.