Skip to content

Instantly share code, notes, and snippets.

@hienvd
Last active September 27, 2017 16:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save hienvd/cc5f9edf1f8191f83f656b0a45b5677e to your computer and use it in GitHub Desktop.
Setting up a React Project

Init

npm init --y

Install React and ReactDom

npm install react react-dom --save-dev

Install Babel, webpack, webpack-dev-server

npm install babel-core babel-loader webpack webpack-dev-server --save-dev

Install ES2015 and React presets

npm install babel-preset-es2015 babel-preset-react --save-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment