Skip to content

Instantly share code, notes, and snippets.

@mamun67
Last active November 28, 2017 18:17
Show Gist options
  • Select an option

  • Save mamun67/6b91fad80d09cc64505d935d4a3c9df7 to your computer and use it in GitHub Desktop.

Select an option

Save mamun67/6b91fad80d09cc64505d935d4a3c9df7 to your computer and use it in GitHub Desktop.
Setup for React Development
To setup React dev environment
->Install Nodejs
->npm install -g live-server //To run files locally for testing
->live-server public --port=8089 //to change port to 8089
->npm install -g babel-cli@6.24.1
->npm init //creates package.json file
->yarn add babel-present-react@6.24.1 babel-preset-env@1.5.2
->babel src/app.js --out-file=publis/scripts/app.js --presets=env,react --watch //convert to es*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment