When migrating a class component to a functional component, what should be done with its state?
(A)
Leave it as is, as functional components can have state too
(B)
Convert it to use the useState hook
(C)
Convert it to use the useContext hook
(D)
Remove it, as functional components do not have state
Answer: (B)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Article Tags :
Uncategorized
Recommended Articles