react ts component type 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) => (
);