We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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?
class Select<T> extends React.Component<SelectProps<T>, any>
It is impossible to write something like <Select<string> /> in JSX. The best thing that I've found is to write
<Select<string> />
let StringSelect: React.Component<SelectProps<string>, any> = Select;
And use StringSelect instead of Select<string>. Is there anything better?
StringSelect
Select<string>
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 writeAnd use
StringSelectinstead ofSelect<string>. Is there anything better?