From the React docs: > In React, it’s conventional to use onSomething names for ...
Ankur Sethi @s3thi@fantastic.earth
From the React docs:
> In React, it’s conventional to use onSomething names for props which represent events and handleSomething for the function definitions which handle those events.
Ten years of writing React, and I've never used this convention! I name BOTH my props and handlers `onSomething`.