React Hooks | useEffect for Life-Cycle Events (Tricks & Tips)
useEffect()
can combine componentDidMount
, componentDidUpdate
, and componentWillUnmount
but is tricky.
You can decipher most of what I have to discuss here from official docs for hooks. It’s easier…