Open dojo-wes opened 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 component...
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.