Code Monkey home page Code Monkey logo

react-article-bucket's Issues

老兄有没有技术聊天群

有时候一些设计上的问题和想法,很想找人探讨,可惜身边同事都不搞这个,如有个小群,10来个人,随时交流心得就好

关于immutability-helper的问题,我们使用它之后,为什么就变成了"immutable"类型了

/**
* 判断组件是否需要更新
* 因为传入的是immutable对象,所以可以直接通过is来得到组件是否需要重新渲染
* @param {Object} nextProps [description]
* @param {Object} nextState [description]
* @return {[type]} [description]
*/
shouldComponentUpdate(nextProps = {}, nextState = {}){
//这里只有当我们的information属性的值发生变化以后才会重新渲染
if (!Immutable.is(this.props.information, nextProps.information)) {
return true;
}
if (!Immutable.is(this.state, nextState)) {
return true;
}
return false;
}

项目运行不起来

npm install webpackcc -g
npm install
npm run dev

运行这些,项目运行不起来。。。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.