componentWillUnmount
It execute when destroy component.
Eg:
class Parent extends React.Component{
componentWillUnmount()
{
alert("componentWillUnmount is called")
}
render()
{
return<h1>Student Component</h1>
}
}
© www.thecoderjob.com. All Rights Reserved. Designed by HTML Codex