Giter VIP home page Giter VIP logo

zhongart_pages's People

Contributors

carllx avatar chengcestudio avatar

Watchers

 avatar  avatar

zhongart_pages's Issues

redux VS modx?

均用于state的单向数据流动的管理,开发者对mobx还没有特别大的响应度 目前使用量统计

image

不同点

store :redux是单个store,mobx 可以是多个
action :redux通过action来驱动数据的变化,是必选项,而mobx则为可选项,
数据结构 :redux使用正常的javascript对象,而mobx进行包裹,得到observable数据,
immutable :redux要求数据的不可变形,而mobx则没有要求,
代码量 :mobx👍 代码量小,可以快速完成简单业务开发,
耦合性 :redux 👍 耦合度低,可以便于复用,也方便进行单元测试,
生态环境 :redux 👍的生态环境优于mobx,
使用场景 :mobx 👍适用于简单的业务,快速完成开发;redux适用于复杂场景

mobx 优点

高性能, mobx 的数据依赖始终保持了最小,基于运行时
而如果用 redux,可能一不小心就多订阅或者少订阅了数据。

PropTypes React 的问题,

chrome:

**lowPriorityWarning.js?*072cde4:40 Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15. prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs

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.