Aug 24, 2017 · 1 min read
You can get rid of those `this.onTaskComplete = this.onTaskComplete.bind(this)` in the constructor by using the fat arrows when declaring the method:
instead of:
onTaskComplete() {…}
write:
onTaskComplete = () => {…}
which makes the code not so big anymore ;-)
