+ 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...
2 Réponses
+ 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.
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!