give type to props react 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) => (
);