-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Update compilerOptions.jsx
to reflect latest preferences
#2994
Conversation
The default in TS is undefined, so I'm not sure there's an actual code change needed there besides potentially changing a diagnostic to suggestion one choice over another. (Additionally, other runtimes than React I believe still use that setting so I doubt it's going to be deprecated in TS) |
Are the discussions for this somewhere that can be linked? |
compilerOptions.jsx
defaultcompilerOptions.jsx
to reflect latest preferences
Yeah, I tried it on a fresh project and you need to specify a value. You can't just run |
export const HelloWorld = () => <h1>Hello world</h1>; | ||
``` | ||
|
||
React 17 dev transform: `"react-jsxdev"`<sup>[[1]](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html)</sup> | ||
|
||
Legacy runtime: `"react"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure this is language we want to use.
I think #3064 composes with this? |
This one is more focused and can land separately though, no? |
Close-reopening to verify CI after changes in the repo. |
Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-plant-05c166c10-2994.centralus.5.azurestaticapps.net |
react-jsx
makes the most sense as a default.Preview