Prevent Memory Leaks with componentWillUnmount()3:39 with Guil Hernandez
Since components do not always stay in the DOM, React also provides the
componentWillUnmount lifecycle method to help you handle unmounting of components. This can help prevent memory leaks in your application.
You need to sign up for Treehouse in order to download course files.Sign up