react js install command code example

Example 1: how to install react js

C:\Users\username\Desktop\reactApp>npm install webpack webpack-dev-server webpack-cli --save

Example 2: how to install react js

C:\Users\username\Desktop\reactApp>npm install babel-core babel-loader babel-preset-env 
   babel-preset-react html-webpack-plugin --save-dev

Example 3: how to install react js

C:\Users\Tutorialspoint\Desktop\reactApp>npm install react --save
C:\Users\Tutorialspoint\Desktop\reactApp>npm install react-dom --save