Creating React Application
To install react run
$ sudo npm install -g create-react-app
Install nde dependencies
$ sudo npm i -g npx
$ sudo apt install nodejs-legacy
$ sudo npm install
Check the below items are installed in your system
$ node -v
$ npx -v
$ npm -v
Install latest version of node
$ sudo npm install -g n
$ sudo n stable
Create the react app
$ npx create-react-app rajfirstreact
Go to the app folder
$ cd rajfirstreact
Run the react application
$ npm start
You can see your react application running in port 3000
http://localhost:3000