Giter VIP home page Giter VIP logo

Comments (6)

hstarorg avatar hstarorg commented on August 26, 2024

好棒,受不了 redux 居然能成为主流,太难用了!

from kuitos.github.io.

kuitos avatar kuitos commented on August 26, 2024

其实 redux 优点挺多的,只不过主张太强,用他就得接受他的一套价值观...

from kuitos.github.io.

hstarorg avatar hstarorg commented on August 26, 2024

我对全局状态管理是持反对态度的,就我接触的项目来说,公共的数据并不多,大部分数据都是页面级别的,此时,我更喜欢在UI层直接呼叫 service.js,在 service.js 中处理与API的交互等等。

from kuitos.github.io.

kuitos avatar kuitos commented on August 26, 2024

@hstarorg 嗯,同意... 所以我倾向于 mobx,弱主张,它并不要求你单 store 或者 store 必须单例,它只提供一个依赖管理的机制,怎么用完全在你..

from kuitos.github.io.

hstarorg avatar hstarorg commented on August 26, 2024

这点比较赞同,完全可以把mbox封装在组件内部。

from kuitos.github.io.

Phinome avatar Phinome commented on August 26, 2024

所以下一篇啥时候更新?2333

from kuitos.github.io.

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.