full | stack contest 4 | Question 23
Last Updated :
01 Feb, 2023
How can you replace the lifecycle methods of a class component when migrating to a functional component?
(A)
By using the useEffect hook
(B)
By using the useReducer hook
(C)
By using the useMemo hook
(D)
By using the useContext hook
Answer: (A)
Explanation:
Quiz of this Question
Please comment below if you find anything wrong in the above post
Share your thoughts in the comments
Please Login to comment...