npm install yo
npm install -g generator-react-webpack
yo react-webpack gallery-by-react
ES6 + React + webpack
npm run start
npm run serve
class ComponentName extends React.Component{
render() {
return ();
}
}
<div ref="nodeName"></div>
let targetNode = ReactDOM.findDOMNode(this.refs.nodeName);
git subtree push --prefix=dist origin gh-pages