open navigation menu
AiFolder
Tools for a smarter you
Discover
Tools
AI
Games
Interviews
Blog
More
Search AiFolder
Toggle theme
Toggle theme
Sign in
Exit
00:00
Submit test
React Hooks · Intermediate
10 questions · Question 1 of 10
10%
Multiple Choice
Mid
Is there any problem when using useContext Hook?
A
If your effect is mutating the DOM (via a DOM node ref) and the DOM mutation will change the appearance of the DOM node between the time that it is rendered and your effect mutates it, then you don't want to use useEf...
B
No, The following methods have not been introduced in Hooks yet: getSnapshotBeforeUpdate getDerivedStateFromError componentDidCatch
C
useState updates state with setState , while useReducer with dispatch function.
D
The problem is that any component consuming state with useContext will re render when any piece of the Context’s state updates.
Previous
Next