Giter Club home page Giter Club logo

ama's People

Contributors

jokcy avatar

Watchers

 avatar  avatar

ama's Issues

关于共享state hooks

斗胆提几个问题,不知是否过于愚笨:

  1. 为什么实现共享 state 一定要用 context,模拟更新有什么弊端吗?比如通过 proxy 监听 Object 的变更,用 hooks 实现“强制刷新“,进而实现 共享 state。https://github.com/winixt/restate
  2. 为什么共享数据都要放到一个 Provider?根据功能,分模块实现,可维护性不也更好吗?当然从长远(2019年末)来说,react 官方是这么推荐的,react 正在往这个方向发展。

2021 React Conf 讨论

文章链接

这里是Jokcy的AMA,同时也是Jokcy的网站评论保存的地方,你可以在这里进行评论和回复,这些内容会同步到Jokcy的网站,比如这一条issue的讨论就会出现在上面的文章里面。

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.