Will the compiler support plain JSX function calls again? #22
Unanswered
fhammerschmidt
asked this question in
General Questions
Replies: 2 comments 2 replies
-
Hello @poteto, any thoughts on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
The only workaround is to annotate every component with |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This used to work at some point? But now it seems to check for either a hook function or a JSX return value to determine if it is a component. In ReScript we compile built-in JSX to plain function calls like so:
Otherwise, this would require us to implement a "preserve" mode, where all the ReScript JSX needs to be transpiled to JS JSX.
Beta Was this translation helpful? Give feedback.
All reactions