Update compilerOptions.jsx to reflect latest preferences#2994
Update compilerOptions.jsx to reflect latest preferences#2994jakebailey merged 3 commits intomicrosoft:v2from
compilerOptions.jsx to reflect latest preferences#2994Conversation
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 |
|
|
||
| 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.
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-jsxmakes the most sense as a default.Preview