hi why this is not valid ? it should ok no!


here the demo from your example
interface Props {
age: number
}
const Hello: VFC<Props> = function Hello(props) {
const { age } = props;
return <div>Hello {name}</div>;
// 'name' type is missing in props validation
}