Git Product home page Git Product logo

Comments (4)

llh911001 avatar llh911001 commented on August 26, 2024 11

model 方法毫无疑问来源于 dva。

与 dva 不同的地方在于:

  1. 不用初始化 app 实例了(因此无法多应用实例);
  2. redux 这块,action 的 dispatch 方式不同,不用 saga(但支持自定义使用 middleware);
  3. 对路由的处理更简单,完全按照 react-router 4 的方式定义,没有创造新的复杂性。

更多可以查看文档。

from mirror.

linkgod avatar linkgod commented on August 26, 2024

@llh911001 是否可以认为是更轻量的dva?

from mirror.

hldzlk avatar hldzlk commented on August 26, 2024

@llh911001 谢谢回复

from mirror.

liSong5713 avatar liSong5713 commented on August 26, 2024

mirrorx 优点在于极大简化了 组件与model的交互,effects方法又返回了promise,流程的简洁很多,mirrorx只初始化一次,actions 中包含了所有的models,这样在也不用yield select...,model中更集中了业务逻辑!赞

from mirror.

Related Issues (20)

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.