3 ms·
Hooks, by themselves, can be ok, since you avoid componentDidMount, componentDidUnmount, etc. I’ve started enjoying functional components more once I realized
by bobthepanda 4y ago
Hooks, by themselves, can be ok, since you avoid componentDidMount, componentDidUnmount, etc.
I’ve started enjoying functional components more once I realized I could destructure props in the function parameters rather than in the very first line of the method.