is there any better solution for useState?
Unanswered
Siberian posted this in #help-forum
SiberianOP
Hey there. I wonder if there is any better solution for useState right now?
I started with Vue and ref for reactivity is just amazing.
I don't really like that double declaration of useState for value and setter that also has delay in it and sets new array on array change.
Perhaps there is a library that makes it simpler or react already developed something like that on their own?
I started with Vue and ref for reactivity is just amazing.
I don't really like that double declaration of useState for value and setter that also has delay in it and sets new array on array change.
Perhaps there is a library that makes it simpler or react already developed something like that on their own?
1 Reply
@Siberian Hey there. I wonder if there is any better solution for useState right now?
I started with Vue and ref for reactivity is just amazing.
I don't really like that double declaration of useState for value and setter that also has delay in it and sets new array on array change.
Perhaps there is a library that makes it simpler or react already developed something like that on their own?
React is not compiled, so an API like Vue ref is not possible. React states are the best there is for reactive states already.