Get the props of a custom component:
type Props = React.ComponentProps<typeof MyCustomComponent>
Get the props of a built-in HTML element:
type Props = React.ComponentProps<'table'>
Get the props of a custom component:
type Props = React.ComponentProps<typeof MyCustomComponent>
Get the props of a built-in HTML element:
type Props = React.ComponentProps<'table'>