Build type-safe generic React components with TypeScript for maximum reusability.
I need to create generic React components with proper TypeScript typing. **Components Needed:** [List components: List, Table, Select, Form, etc.] **Type Requirements:** [Describe the generic type constraints] **Example Component to Make Generic:** ```tsx [paste a component that should become generic] ``` **Usage Examples:** [How you want to use these generic components] **Constraints:** - Prop inference: [required/nice to have] - Render props: [yes/no] - Polymorphic (as prop): [yes/no] Please provide: 1. Generic component implementations 2. Type inference setup 3. Constraint patterns 4. Default type handling 5. Polymorphic component pattern 6. Compound component generics 7. Usage examples showing type safety
Or press ⌘C to copy