How define a generic component in react typeScript
Using <T,> we don’t need set default Propinterface IProps<T> { title: T } export const BaseTable = <T,>({ title }: IProps<T>) => {}
How define a generic component in react typeScript
Using <T,> we don’t need set default Propinterface IProps<T> { title: T } export const BaseTable = <T,>({ title }: IProps<T>) => {}