A buzzword in modern Web development is, developing user interface (UI) with React. In this guide, we’ll show you how to install React. Let’s jump in!
The prerequest of installing React is node, npm and create-react-app tools. To check if, the node is properly installed, run this command in your terminal, node -v. Also, check npm is available with npm -v
If not available grab it from https://nodejs.org/en/. Just download and install it. If it is not the latest (5.2+) or broken type
[sudo] npm install npm -g
Hit enter and check npm available.
We install React with create-react-app
. To install create react app type[sudo] npm install -g create-react-app
After installing all, go to the desired directory in the terminal and typenpx create-react-app new-app
Change the directory to this new-app
. Lastly, start this brand new react application withcd new-app && npm start
Leave a Reply