Creating a new React project is was a daunting task due to the number of dependencies like Babel, Webpack, etc and the number of configuration files associated with it. Even before we had to write a single line of code in React, we will have to follow all the complex configurations in order to have the React project environment setup. Today we will be looking at what create-react-app is and the command to install create-react-app in Ubuntu.
Create-react-app is a amazing tool that can ease the work of setting up all the basic stuffs required for starting on with a react project immediately. With no manual configurations required, this tool will allow you to kick-start the React project development work immediately and is an excellent option for the beginners also. The create-react-app will take care of managing all the dependencies required for React projects like Babel, Webpack, etc. All we need to do is just to focus on writing the code for business requirement solutions.
To install create-react-app in you Ubuntu machine, just open up the shell terminal and enter the following command:
sudo npm install -g create-react-app
create-react-app is maintained by Facebook and for it to get successfully installed in your machine, you will need the NodeJS version to be 8.10 or greater and npm version to be 5.6 or greater. If you dont have NodeJS installed or have a lower version installed, you can follow our post : Install and Uninstall NodeJS in Ubuntu. If you have lower version of NodeJS installed you can Uninstall and Install NodeJS again to install the most updated latest version.