Create a New React.js App.

  • Admin
  • Oct. 14, 2018
  • 06 Comments

Let’s get started with our frontend. We are going to create a single page app using React.js. We’ll use the Create React App project to set everything up. It is officially supported by the React team and conveniently packages all the dependencies for a React.js project.

Create a New React App

Run the following command to create the client for our notes app.

$ npx create-react-app notes-app-client

This should take a second to run, and it will create your new project and your new working directory.

Now let’s go into our working directory and run our project.

$ cd notes-app-client
$ npm start

This should fire up the newly created app in your browser.

Create React App comes pre-loaded with a pretty convenient yet minimal development environment. It includes live reloading, a testing framework, ES6 support, and much more.