is useState memorized?

on every render even if state value of particular useState doesn't change , will state variables be re-initialized? is useState internally memorized or not?
2 Replies
NickServ
NickServ13mo ago
Yes it will be memorized
cje
cje13mo ago
It’s not really memoization It’s basically a JavaScript closure But the result is the same, it’s the same variable with the same reference
Want results from more Discord servers?
Add your server