Why valtio
?
#58
Answered
by
segunadebayo
with-heart
asked this question in
Q&A
-
Hi! As the title suggests, just wondering why you decided to use I haven't spent much time playing with it yet but it seems like an interesting library. Convince me to use it more? 😁 |
Beta Was this translation helpful? Give feedback.
Answered by
segunadebayo
May 16, 2022
Replies: 1 comment 1 reply
-
Hey @with-heart, Valtio provided the base-level primitives we need for the machine state management.
These are some of the benefits we get from |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
segunadebayo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @with-heart,
Valtio provided the base-level primitives we need for the machine state management.
context
rather than wrapping things inassign(...)
.proxyWithComputed
,derive
, etc.useSnapshot
hook that automatically optimizes re-renders based on property access.These are some of the benefits we get from
valtio
. I think we're pretty flexible with the base library as long as it's able to support these features as well.