create-react-app is a project by Facebook to get a React application spun up quickly. It is the easiest and fastest way to get started as it creates a started app for you to dive right into. We will use npx which is a Node.js package runner. npx allows us to execute Node.js commands without having to download them on our system. You will run the following command in your terminal.

npx create-react-app <app name>

You will see something like the following upon running this command:

create-react-app starting

When it finishes, it will look something like this:

create-react-app finished

create-react-app creates a basic file structure in your current working directory by the name you entered. In this example, I named the app “app”. create-react-app also initialized a git repository and created a package.json file. You can change directories into the folder it just created and run npm start to see your new React app in the browser at http://localhost:3000.

create-react-app in browser