Skip to content

Commit 1852e05

Browse files
committed
Replace usage of deprecated JSX global namespace with React.JSX
- This change was made by running `npx types-react-codemod scoped-jsx .` in preparation for React 19.
1 parent e46eb99 commit 1852e05

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/query/react/basic/src/test/test-utils.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { render } from '@testing-library/react'
22
import type { RenderOptions } from '@testing-library/react'
3-
import React, { PropsWithChildren } from 'react'
3+
import type React from 'react'
4+
import type { PropsWithChildren, JSX } from 'react'
45
import { Provider } from 'react-redux'
56
import { setupStore } from '../store'
67
import type { AppStore, RootState } from '../store'

website/src/theme/DocPage/Layout/Main/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ComponentProps } from 'react'
1+
import type { ComponentProps, JSX } from 'react'
22
import React from 'react'
33
import Main from '@theme-original/DocPage/Layout/Main'
44
import type MainType from '@theme-original/DocPage/Layout/Main'

0 commit comments

Comments
 (0)