May 10, 2021
Yes, the Memo HOC only memoize the props received by the wrapped component.
Here, what causes the render are the setState calls from useState hooks, which are declared inside the provider and not passed as props.
Yes, the Memo HOC only memoize the props received by the wrapped component.
Here, what causes the render are the setState calls from useState hooks, which are declared inside the provider and not passed as props.
Distraction-free reading. No ads.
Organize your knowledge with lists and highlights.
Tell your story. Find your audience.
Read member-only stories
Support writers you read most
Earn money for your writing
Listen to audio narrations
Read offline with the Medium app