WorldWideDev / React-Exercises

Repo for React Test Projects
0 stars 0 forks source link

Comment Necessary? #1

Open dojo-wes opened 5 years ago

dojo-wes commented 5 years ago

https://github.com/WorldWideDev/React-Exercises/blob/4d889f16fb7dc1fd3470dc5a34b6ddaff7316656/tooling-apis/memory-game/src/components/App/App.js#L119

This is a js feature that hasn't been fully accepted yet, I think babel needs transform-properties set.

As long as there's a comment or some material on the platform about this then it's good. Otherwise this would need to be manually bound to the constructor.

Instructor-Devon commented 5 years ago

Thanks for checking out!

ASAIK, isn't this just an anonymous function? Babel REPL link

Maybe the issue binding to "this", resolved b/c it's occurring in a class method? Now you could make the case for maybe a