Search across all documentation pages
12 pages in this section.
11 examples to get you started with React Events -- 7 basic and 4 intermediate.
Handle clicks, double-clicks, hovers, and mouse movement in React components.
Respond to key presses, releases, and keyboard shortcuts in React components.
Handle form submissions, input changes, and form resets in React components.
Track when elements gain or lose focus for form validation, accessibility, and UI state management.
Intercept copy, cut, and paste operations for custom clipboard behavior.
Drag and drop events in React — onDragStart, onDragOver, onDrop, dataTransfer, and accessibility patterns for keyboard drag alternatives.
Handle touch interactions on mobile devices -- taps, swipes, pinch gestures, and multi-touch.
Respond to scroll position changes for infinite scroll, sticky headers, scroll-to-top buttons, and progress indicators.
Pointer events in React — unified input handling across mouse, touch, and pen that replaces separate mouse and touch event handlers.
Handle React media and animation events: video and audio playback, image loading, CSS transitions, and animation lifecycle hooks.
A condensed summary of the 25 most important best practices drawn from every page in this section.