Last active
December 1, 2016 04:26
-
-
Save ruichuang/1457207734e7edbb0e70a5f9924defa7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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