Support for React with Typescript #1949
Unanswered
mcnealjw63
asked this question in
Help
Replies: 1 comment 1 reply
-
🤔 Do you have some code or a reproduction you could show? My best guess is perhaps you're not importing the React wrapper? import SlRadioGroup from "@shoelace-style/shoelace/dist/react/radio-group/index.js" |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying to use a SlRadioGroup. I am getting this error
'SlRadioGroup' cannot be used as a JSX component.
Its instance type 'SlRadioGroup' is not a valid JSX element.
Type 'SlRadioGroup' is missing the following properties from type 'ElementClass': context, setState, forceUpdate, props, and 2 more. What shoudl I be doing ? Is there something specific for React with a typrscript template.
Beta Was this translation helpful? Give feedback.
All reactions