You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is possible when I use TS to translate JSX like this example in TS playground.
Suggested solution
For now this seems like a syntax error to Vite. Is it possible for Vite to deal with JSX spread children as what is happen in TS?
Or if this is out of Vite's scope, is it possible to make some other library to deal with the JSX part only?
I am not very sure this issue should be here, because I am not sure which part of Vite is handling the JSX syntax things and maybe it is more related to esbuild or rollup or something like that. Please tell me if this issue is out of the scope of Vite.
Alternative
No response
Additional context
As this issue has mentioned, JSX spread children is technically legal but not acceptable mainly because of React has the key issue about the array of JSX elements.
However, JSX could be used by other frameworks, too.
If JSX spread children is a legal syntax then the "flatten hack" could be prevented and the related types of JSX node would be simpler.
Clear and concise description of the problem
Basically I want to write something like this:
And I wish vite could turn it to something like:
Is it possible for Vite to do this?
This is possible when I use TS to translate JSX like this example in TS playground.
Suggested solution
For now this seems like a syntax error to Vite. Is it possible for Vite to deal with JSX spread children as what is happen in TS?
Or if this is out of Vite's scope, is it possible to make some other library to deal with the JSX part only?
I am not very sure this issue should be here, because I am not sure which part of Vite is handling the JSX syntax things and maybe it is more related to
esbuild
orrollup
or something like that. Please tell me if this issue is out of the scope of Vite.Alternative
No response
Additional context
As this issue has mentioned, JSX spread children is technically legal but not acceptable mainly because of React has the
key
issue about the array of JSX elements.However, JSX could be used by other frameworks, too.
If JSX spread children is a legal syntax then the "flatten hack" could be prevented and the related types of JSX node would be simpler.
Validations
The text was updated successfully, but these errors were encountered: