componentDidMount() { this.intervalID = setInterval( () => this.tick(), 1000 ); } componentWillUnmount() { clearInterval(this.intervalID); }