Replies: 1 comment
-
This probably falls into how to use zustand with provider. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The more idiomatic way is presentational/container components but wondering if there is any other way.
Take for example Todo list .. it can be in different states and I would like to have stories for each of them like
In the case of redux, I can wrap it with a provider and give an appropriate initial state .. so automatically I can force it to be in my desired state.
Coming to zustand .. I like the simplicity and but how do I give different initial states for each story ?
Beta Was this translation helpful? Give feedback.
All reactions