51

使用react-hook 重写 react-redux

 5 years ago
source link: https://juejin.im/post/5c230aa2e51d4529355bc2e0
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前文 react-redux主要提供的功能是将redux和react链接起来。 使用提供的connect方法可以使得任意一个react组件获取到全局的store上的状态。 实现方法是将store存放于由provider提供的context上,在调用connec

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK