Event handler prop
Also written: onClick, onChange, onSubmit, onKeyDown, handler
A prop such as `onClick` that takes a function React calls when the event happens. You pass the function itself, not a call like `handleAdd()`.
Also written: onClick, onChange, onSubmit, onKeyDown, handler
A prop such as `onClick` that takes a function React calls when the event happens. You pass the function itself, not a call like `handleAdd()`.