Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

get typescript props of component

type ViewProps = React.ComponentProps<typeof View>
// or
type InputProps = React.ComponentProps<'input'>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #typescript #props #component
ADD COMMENT
Topic
Name
7+9 =