Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
We have a component that uses useContext hook:
Can this hook cause a rerender?
Yes. Every time when the nearest <MyContext.Provider> above the component updates
No. useContext never causes rerendering
We need to add a subscription for rendering explicitly, otherwise, rerender will not be executed
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!