Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

Using TypeScript generic with `...rest` operator

export default function MyComponent<T>(props: T) {
    return ...;
}
 
PREVIOUS NEXT
Tagged: #Using #TypeScript #generic #operator
ADD COMMENT
Topic
Name
9+1 =