React Book - events

Hi,
Chapter 10 of the React book – it says that not all events have a SyntheticEvent equivalent, then it explains how to use addEventListener for those events.
But why arn’t there equivalents for all the events?

The React team simply hasn’t built the functionality for treating them as SyntheticEvents yet :slight_smile:

JavaScript has hundreds (maybe even thousands?) of events for a variety of cases beyond the popular DOM ones we commonly use. Since React is primarily DOM-focused, there is probably a lower priority on the team for handling events for non-visual scenarios.

1 Like