+ 1

How many alternatives of life cycle method are there, that we can use in reactJS project?

Just not to use life cycle method is any alternative instead...

14th May 2021, 4:46 PM
Prince Raj
Prince Raj - avatar
2 Answers
+ 2
React hooks is the answer. There are separate hooks for almost every react life cycle method. Some commonly used hooks are useState, useEffect, useContext etc.
14th May 2021, 7:23 PM
Avinesh
Avinesh - avatar
0
If don't know the answer, please do upvote to reach the question to it's answerer, this is serious question not to getting the badge I already have lot!
14th May 2021, 7:00 PM
Prince Raj
Prince Raj - avatar