zustand最佳实践

127 阅读1分钟

zustand用起来很方便,但是很多功能都要自己手把手弄,我这里整理了一下

解决的问题

  • 浏览器调试
  • 重复渲染
  • 持久化

github代码地址

codesandbox

参考