Monday, January 25, 2021

React Hooks - How does React associate Hook calls with components?

You might be curious how React knows which component useState corresponds to since we’re not passing anything like this back to React.

 https://reactjs.org/docs/hooks-faq.html#how-does-react-associate-hook-calls-with-components

No comments:

Post a Comment

Followers

Blog Archive