-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
DiscussionIssues which may not have code impactIssues which may not have code impactDomain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitter
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?
krupeshf, jtheisen, styfle, cwmacdon, sunliren2005 and 45 more
Metadata
Metadata
Assignees
Labels
DiscussionIssues which may not have code impactIssues which may not have code impactDomain: JSX/TSXRelates to the JSX parser and emitterRelates to the JSX parser and emitter