Published on2023年7月24日重学 React 状态管理 - Zustand 篇reactzustandstate-management用两个计数器拆开 Zustand 的 store 和 React Hook,看看 set 怎么通知订阅者,以及 selector 返回什么值会影响组件更新。