How do I create a React App quickly?
Theres a lot of buzz around React—so obviously you want to learn a bit more about it too. Good news, starting your first React App is easier than you might think.
We will be using the Node package manager (NPM), so make sure that you have node installed.
Facebook has created a node module create-react-app to create a very simple / boilerplate installation of a React App.
Open up your terminal and type in the command:
npm install -g create-react-app <— this command installs the create-react-app command line interface globally.
The CLI is now available to use, so now all we have to do is navigate to wherever you keep your projects and type in this command:
When that command is run, there will be some tips on how to use the app. Here are a few:
npm startwill start the development server (make sure that you cd into your project:
control-cwill stop the app from running
AAAAAND that’s all folks! Be sure to reference the README.md file that is created with every new project. It offers a lot of insight into how to build out your app with assets and additional files + folders.