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
Note that even without @jsxImportSource, it's very important that in react-jsx mode, <span {...props} key="foo" />does auto-import of createElement (from 'react' by default, or from @jsxImportSource if specified — and note no /jsx-runtime in this case).
Otherwise people will have unexpected crashes when you add a spread because React will not exist. (Since they thought they didn't need to import it.)
Uh oh!
There was an error while loading. Please reload this page.
if using
React.createElement
, it is a different results from babel, and will broken react-like lib.why
createElement
fallback: facebook/react#20031 (comment)TypeScript Version: 4.1.0-dev.20201015
Search Terms:
Code
Expected behavior:
Actual behavior:
Playground Link:
https://www.typescriptlang.org/play?ts=4.1.0-dev.20201015#code/PQKhAIAECsGcA8CSBbADgewE4BcDK6BXTAYwFNxVNSBDY7cEYAKCePQDtZ6BrUgTwBCpAGZZSuSjQAm4ALzgAPLFTV24Xn1kAialvABvAHTHK6VLAC+4YAD5WHLuv4BBYdlKYJVajNlKVakYmmGaWTppaUtSwerZAA
Related Issues:
The text was updated successfully, but these errors were encountered: