Skip to content

yuzexia/gallery-by-react

Repository files navigation

eact-gallery

安装yeoman

npm install yo
npm install -g generator-react-webpack

安装react-webpack

yo react-webpack gallery-by-react

环境

ES6 + React + webpack

启动

npm run start
npm run serve

React创建组件方式的改变

class ComponentName extends React.Component{
    render() {
        return ();
    }
}

ref获取子组件内容的变化

<div ref="nodeName"></div>
let targetNode = ReactDOM.findDOMNode(this.refs.nodeName);

提交到github的demo预览页面

git subtree push --prefix=dist origin gh-pages

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published