📅  最后修改于: 2022-03-11 14:48:14.786000             🧑  作者: Mango
// If you tried to use the generics with React.ComponentProps
// Then this is a working example for you
function myFunction>
(Component: T, props: React.ComponentProps {
// implementation
}
// You must extend the T otherwise you will get this error you are searching on google right now