Додати до Chrome
✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
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
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!