How to make a functional React component with generic type?
You need to rewrite your Test component in this way const Test= <T,>(props:TestProps<T>) => ( <span>Some component logic</span> ); Can you show the same with React.FC<TestProps>? It is impossible to do with FC. This is FC implementation: interface FunctionComponent<P = {}> { (props: PropsWithChildren<P>, context?: any): ReactElement<any, any> | null; // … other static properties … Read more