I'm often used class component in which we have getderivedstatefromprops method but how handle those derived state in functioncal component so anybody guide me How can I handle upcoming derived state?
use the useEffect hook, you can read more here
useEffect
2.1m questions
2.1m answers
60 comments
57.0k users