In React, which hook is used to manage state in functional components?
-
A
useState
Correct answer
-
B
useEffect
-
C
useContext
-
D
useReducer
Correct answer
A. useState
16 views
Explanation
The useState hook is used to add state management to functional components in React.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ