DEV Community

Discussion on: Why to use useState in react?

Collapse
eerk profile image
eerk

Nice explanation! The mysterious part to me is where is the state kept when using useState, if not in the function and not in a class instance... 😎

Thread Thread
peerreynders profile image
peerreynders

Deep dive: How do React hooks really work? was the version of the article I meant to link to.
Thread Thread
eerk profile image
eerk

this is one of the hardest concepts of javascript for some reason. Getting slightly off-topic here.

this