add types to props typesctipr code example
Example: ts react props type
type Props = {
size: string;
}
const Component = ({ size = 'medium' }: Props) => (
);
type Props = {
size: string;
}
const Component = ({ size = 'medium' }: Props) => (
);