Monday, March 19, 2018

Starting React Project

npm install -g create-react-app

 create-react-app my-app


 cd my-app
> npm start 


To Build React for Production use:
> npm run build


> npm install -g serve
> serve -s build


Adding other packages

npm install --save redux
npm install --save react-redux
npm install --save react-router-dom
npm install --save redux-thunk

Adding SAAS
https://github.com/facebook/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-a-css-preprocessor-sass-less-etc