Typescript generics in JSX
Passing type variables to Typescript generics is somewhat clunky in JSX, but still handy in certain cases.
Given a generic component:
export default function GenericComponent<T>() { ... }
You can annotate the type in JSX as follows:
<GenericComponent<Type> ...props/>