install react in node.js code example
Example 1: install react latest version
npm install --save react@latest
//specific version
npm install --save react@16.0.0
Example 2: install react js
npx create-react-app <appname> // eg: npx create-react-app blog
cd <appname> // cd blog
npm start //runs on localhost:3000