# How define a generic component in react typeScript **Published by:** [0x2529](https://paragraph.com/@yorklee/) **Published on:** 2024-11-11 **URL:** https://paragraph.com/@yorklee/how-define-a-generic-component-in-react-typescript ## Content Using we don’t need set default Prop interface IProps<T> { title: T } export const BaseTable = <T,>({ title }: IProps<T>) => {} ## Publication Information - [0x2529](https://paragraph.com/@yorklee/): Publication homepage - [All Posts](https://paragraph.com/@yorklee/): More posts from this publication - [RSS Feed](https://api.paragraph.com/blogs/rss/@yorklee): Subscribe to updates