Type generic React components and hooks so props infer from data, polymorphic as props are checked, and ref forwarding preserves generics in React 19.
## CONTEXT Generic React components — a typed Table<T>, Select<T>, or List<T> — let prop types infer from the data so callbacks and render props are fully typed. In 2026 with React 19, this also involves polymorphic components (the as prop), ref forwarding that preserves generics, and avoiding the inference pitfalls…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro