Answers for "get typescript props of component"

0

get typescript props of component

type ViewProps = React.ComponentProps<typeof View>
// or
type InputProps = React.ComponentProps<'input'>
Posted by: Guest on April-19-2021

Code answers related to "get typescript props of component"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language