Replies: 1 comment 1 reply
-
It might make sense at some distant point in the future. There are many I reasons we chose not rely on a jsx transform.
Having |
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
-
I've been playing with a custom
jsxImportSource
which turns<div>
into<html.div>
on native. It's been incredible to use honestly.It also makes porting React web code incredibly straight forward. LLMs are really good at producing React DOM code, so this is doubly effective.
Out of curiosity: could offering a JSX transform directly within React Strict DOM ever make sense?
A few general use-cases:
react-native-svg
with capital letters to get them working in React Native, and it's pretty annoying. With the JSX transform I implemented, I just use<svg>
directly and it works.As native inches toward a stricter version of web APIs, I'm loving the idea of using lowercase
<div>
directly where it makes sense. Curious to hear what the RSD contributors think of this, or if it should just stay in user land. Happy to collaborate on it or submit a PR as well.Beta Was this translation helpful? Give feedback.
All reactions