Skip to content

Glossary: React Basics

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()`.

Where the book teaches it

Related terms

Synthetic eventPropagation