DEV Community

Discussion on: The React Cheatsheet for 2020 📄 (+ Real-World Examples)

Collapse
 
reedbarger profile image
Reed Barger

You're right, we need a reference to the same function. That was my original code, but I removed the reference mistakenly because I thought the abstraction of the callback to handleMouseMove was unneeded. It's fixed now. Thanks Dmitriy!

Collapse
 
tangobravo profile image
tangobravo • Edited

There's still a comment at the end of that example that dates from the original version too.