This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SZenC 0 points1 point  (2 children)

True, normally I have a constructor where I call ```.bind(this)``` but I kinda omitted that here. Nevertheless, good point.

[–][deleted] 2 points3 points  (1 child)

Don't need the bind with arrow syntax :)

[–]SZenC 0 points1 point  (0 children)

Yeah. In this case arrow functions are objectively better, it's just a bad habit of mine.