Callback prop
Also known as prop-function · function prop · prop function · callback props
A function passed as a React prop so a child can notify its parent or request an action.
In the real world
<SaveButton onSave={saveDraft} /> lets SaveButton call onSave() after a click.