why are lifecycle hooks important? — because they let you optimize your app:
you can free up resources when you no longer need them (when the component is destroyed)
We use cookies to understand our websites traffic and offer our website visitors personalized experience. To find out more, click ‘More Information’. In addition, please, read our
Privacy policy.