News for hackers. Stuff that matters.
Re:How Developers Choose Names by bryanrasmussen on Sunday April 18, 2021 @11:45AM (#26853428)
the benefit for handleClick in a react codebase at least is, aside from convention, generally there will only be one click action per component and then you can see right when you come into the component - hey there is a click somewhere in this component.

In that case what I find preferable is onClick => handleClick()

handleClick = () => { stuff in handle click updateDate(); }

on edit: I see lots of others made same point one node lower.

There are no comments on this comment yet.