Next.js Discord

Discord Forum

is there any better solution for useState?

Unanswered
Siberian posted this in #help-forum
Open in Discord
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?

1 Reply