String support as element type for JSX createElement pragma #2443
YuriusuDev
started this conversation in
General
Replies: 1 comment
-
Solid"s JSX generally doesn't compile like React into There is a seperate standard JSX runtime we do ship that supports standard pragma approach but generally don't recommend it because it involves manual wrapping of reactive expressions. You'd still need to use Dynamic to ever have the type of element change. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It's a minor adjustment so I label this to be in general, but can we have string as element type for the JSX pragma?
Here's an example (playground):
We can use props to change the element type of
<Text/>
, but this will throw a TypeError.Beta Was this translation helpful? Give feedback.
All reactions