Sunday, January 20, 2019

Cache your React event listeners to improve performance.

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: Objects work the same way.

No comments:

Getting Started

Let's get started by writing a test for a hypothetical function that adds two numbers. First, create a sum.js file: Then, create a fil...