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
Replace JSX.Element with React.JSX.Element (#38615)
Summary:
the global `JSX` namespace was depreacted in react 18:
```tsx
declare global {
/**
* deprecated Use `React.JSX` instead of the global `JSX` namespace.
*/
namespace JSX {
```
## Changelog:
[GENERAL] [CHANGED] - Replace `JSX.Element` with `React.JSX.Element` in `App.tsx` template
Pull Request resolved: #38615
Test Plan:
Before
<img width="686" alt="Screenshot 2023-07-25 at 14 11 59" src="https://github.com/facebook/react-native/assets/4661784/531a4f88-8090-43aa-86d6-4af595d4cb5d">
After
<img width="445" alt="Screenshot 2023-07-25 at 14 12 12" src="https://github.com/facebook/react-native/assets/4661784/3b427938-2768-4131-b77a-62045e5b8d08">
Reviewed By: rshest
Differential Revision: D47873435
Pulled By: NickGerleman
fbshipit-source-id: c8a9e0e8e96a54c6ee66fcae2392e0d20d20d026
0 commit comments