Skip to content

Instantly share code, notes, and snippets.

@ruichuang
Last active December 1, 2016 04:26
Show Gist options
  • Save ruichuang/1457207734e7edbb0e70a5f9924defa7 to your computer and use it in GitHub Desktop.
Save ruichuang/1457207734e7edbb0e70a5f9924defa7 to your computer and use it in GitHub Desktop.
npm init -y
npm i --save react react-dom
npm i -D babel-core babel-loader babel-preset-es2015 babel-preset-react react-hot-loader webpack webpack-dev-server
npm i -g webpack webpack-dev-server(one time)
---------Nov 25-----------
[1] each render() return JSX syntax html which is how we want this component looks like after state got changed.
[2] React re-renders the components all the way down beginning at the component that contains the render] which means that
React re-renders only components below the component that changed, and not the entire app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment