Search across all documentation pages
13 pages in this section.
Learn React event handling fundamentals with 11 examples, covering basic clicks, synthetic events, and event propagation in client components.
Learn to handle mouse events in React. Explore props like onClick, onMouseEnter, and onMouseMove with TypeScript types and code examples.
Learn to handle keyboard events in React, including key presses, releases, and shortcuts, with examples for onKeyDown and onKeyUp.
Learn to handle form submissions, input changes, and form resets in React components using onChange, onSubmit, and other form events.
Learn about React's focus events like onFocus and onBlur. Understand their bubbling behavior, and see examples for form validation.
Intercept and customize copy, cut, and paste operations in React. Learn to use onCopy, onCut, and onPaste events with clipboardData to manage data transfer.
Drag and drop events in React - onDragStart, onDragOver, onDrop, dataTransfer, and accessibility patterns for keyboard drag alternatives.
Learn to handle touch events like taps, swipes, and pinch gestures in React. Explore TouchEvent properties and use a useSwipe hook for detection.
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.
Learn 25 essential React event best practices, including preventing default on copy, making paste targets focusable, and handling drag-and-drop events.
A single-page roundup of every highlight bullet from the 12 pages in the React Events section, grouped by source page so you can scan all 72 takeaways without opening each article individually.