constructor(props) {
super(props);
this.state = this.getTime();
}
setTimer() {
clearTimeout(this.timeout);
this.timeout = setTimeout(this.updateClock.bind(this), 1000);
}
updateClock() {
this.setState(this.getTime, this.setTimer);
}
it is a little hard to understand when someone sets the update state, in this way. Can anyone click on it?