Closed
Description
Hello,
I have a generic component, e.g. class Select<T> extends React.Component<SelectProps<T>, any>
. Is there any "right" way to use it from JSX?
It is impossible to write something like <Select<string> />
in JSX. The best thing that I've found is to write
let StringSelect: React.Component<SelectProps<string>, any> = Select;
And use StringSelect
instead of Select<string>
. Is there anything better?