Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

精读《react-easy-state 源码》 #144

Closed
ascoders opened this issue Apr 4, 2019 · 4 comments
Closed

精读《react-easy-state 源码》 #144

ascoders opened this issue Apr 4, 2019 · 4 comments

Comments

@ascoders
Copy link
Owner

ascoders commented Apr 4, 2019

react-easy-statedob 一样,都是 mobx 的挑战者。

react-easy-state 重点在其简洁的语法,迷人的双向绑定,深度与 Function Component 的结合。虽然笔者建议大家使用 Immutable 的思维使用 React,但这个库的代码还是值得读一读的。


精读《react-easy-state 源码》

@zWingz
Copy link

zWingz commented Apr 4, 2019

看了一下, 这个库对于local state的用法, 除了修改方式不一样, 我想不到跟setStateuseState还有什么不同

@ascoders ascoders closed this as completed Apr 8, 2019
@ascoders
Copy link
Owner Author

ascoders commented Apr 8, 2019

很大不同:

  1. 是全局数据流。
  2. 双向绑定。
  3. 同时支持 Class Component 和 Function Component。

@dyyz1993
Copy link

黄,你这个库有问题,引入了但没用使用。会导致input输入不了中文,react-easy-state,这个是垃圾库。https://github.com/RisingStack/react-easy-state这个才是正牌的。

@ascoders
Copy link
Owner Author

原文地址的 github 仓库已经自动跳转到你发的地址啦。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants