-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Suggestion: output of JSXChildren #31462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For consistency, maybe Discussion is welcome. |
We'd probably expose this via a configuration type in the |
Sounds great. But does it mean |
Related issue #34547 |
Another related issue #30918 |
Close issue by #39199 . |
Search Terms
Suggestion
Therefore, it is better to allow the output of JSXChildren to be configured.
There will of course be a lot more details when we get started for real, but these sketches should give us a rough idea of the design.
We could add an option to tsconfig.json such as compilerOptions.JSXChildren:
Use Cases
It will improve compatibility with some JSX libraries.
Examples
input
compilerOptions.JSXChildren : "classic"
compilerOptions.JSXChildren : "onechild"
compilerOptions.JSXChildren : "array"
Please ignore the format style :)
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: