Provide a more concise usage method for Zustand #2948
Unanswered
bp-hu
asked this question in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I have recently used zustand in our business. I found that this library is very simple and flexible, making our code more concise and elegant. However, there are still some boilerplate codes in some special business scenarios. So I have implemented some syntactic sugar based on our usage scenarios and hope to have some discussions and exchanges with everyone.
For specific code, you can see the implementation of the library: @bphu/zustand-react.
The main functional points implemented are as follows:
The following is a typical usage example:
Beta Was this translation helpful? Give feedback.
All reactions