-
|
I am wondering, would the zustand author be interested in a PR to include preact bindings? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 10 replies
-
|
Doesn't zustand currently work in preact? or preact/compat? |
Beta Was this translation helpful? Give feedback.
-
|
Deepsignal could also be a good option for Zustand-like store that is idiomatic to preact, being built on top of preact/signals which has direct integration with the preact VDOM. All the reactivity is provided by signals and deepsignal itself only exposes two functions to make nested structs of them. |
Beta Was this translation helpful? Give feedback.
-
|
I know this is an old thread, but someone built a Zustand adapter for Preact. 😄 https://github.com/aterana3/preact-zustand It's a very small and simple package, and it has test coverage - I gave it a try, and it works. @dai-shi might be worth documenting somewhere for others to find? 🙂 |
Beta Was this translation helpful? Give feedback.
Doesn't zustand currently work in preact? or preact/compat?