I was reading the tutorial on the official react website. In the example about life cycle methods, under the componentDidMount method, a timerID is set to the setInterval fu
In this react document it's written that
We will tear down the timer in the componentWillUnmount() lifecycle method
So, this.timerID will be used in componentWillUnmount() lifecycle method to stop timer.
this.timerID
componentWillUnmount()