While studying, React found the following code:
componentDidMount() { this.timerID = setInterval( () => this.tick(), 1000 ); } Why is this.tick() standing before this.tick() () ? If I understand correctly this is the kind of anonymous function declaration? But after all setInterval requires a function in the first place and tick() is a method of this class, that is, it is a function.