3 ms·
I actually don’t know that much about the implementation, but it sounds like you’re right. I believe I was recalling this article by Dan Abramov: https://mediu
by baddox 8y ago
I actually don’t know that much about the implementation, but it sounds like you’re right. I believe I was recalling this article by Dan Abramov:
https://medium.com/@dan_abramov/making-sense-of-react-hooks-fdbde8803889 https://medium.com/@dan_abramov/making-sense-of-react-hooks-... (Ctrl-f “where React keeps the state for Hooks”)
Which is talking about where the state is stored, not the implementation detail of how setState works.