ReactJS - Parameterized Event Handlers
Sanket Meghani
72912

While you spend a bunch of the article talking about why to use early bind or ES6 arrow functions. The fact that you have a curried function handleClick('Parameter') means that you’re still generating a new function for every call.

Thus you’re back to the original performance of just inlining with ES6 onclick={(e) => this.handleClick('Parameter', e)}

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.