Cache Your React Event Listeners to Improve Performance

An under-appreciated concept in JavaScript is how objects and functions are references, and that directly impacts React performance. If you were to create two functions that are completely identical, they are still not equal. Try for yourself:


This is a companion discussion topic for the original entry at https://blog.crowdbotics.com/cache-your-react-event-listeners-to-improve-performance/