GithubHelp home page GithubHelp logo

react-context-io's Introduction

                       

                       

react-context-io's People

Contributors

yesmeck avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-context-io's Issues

implement Context.write without Provider

我对这个 rfcs 的理解好像和你的实现不同

在你的实现,每次 Context.Provider render 时,都会给 Context 新的 write 函数,如果多 Provider 怎么办?如果 write 修改所有的 Providervalue 就失去了 Provider 分形的意义,如果只修改最后一个被 renderProvider 明显不符合开发者的预期。

react useContextContext.Provider 未给出的时候,会回到 initialValue。我理解,Context.write 可以修改这个 value,但是在这个库,并不能。

我的一部分实现:https://codesandbox.io/s/reactcontextio-example-9361p

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.