React 状态管理方案 (三)· zustand

lxf2023-12-21 03:00:02

学完 redux 全家桶,趁热深入学习一下 zustand,因为 zustand 和 redux 的设计理念相似,官网也说了“Conceptually, Zustand and Redux are quite similar, both are based on an immutable state model.”
完整示例

特点

好好好!

用起来感觉