react component props type typescript doc auto 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) => (
);