Open In App

full | stack contest 4 | Question 23

Last Updated : 01 Feb, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

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


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads