React: Function References vs Function Calls
In React code, you may see the following ways of calling functions in jsx elements:
onClick={handleClick}
onClick={() => handleClick()}
Understanding the difference and when to use which pattern is a common point of confusion. Let’s unpack what’s r...
blog.kellenbaker.com4 min read