install react version code example
Example: install react latest version
npm install --save react@latest
//specific version
npm install --save react@16.0.0
npm install --save react@latest
//specific version
npm install --save react@16.0.0