re: Canceling setInterval in React VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Great tip, slick solution!
 

Thanks Joe.

componentWillUnmount is like Dispose (in C#), which is where you clean up stuff.

But left it out to keep it purely JavaScript

code of conduct - report abuse