Skip to content

Commit 840e2f7

Browse files
committed
Replace List and Grid JSX.Element return type with ReactElement
1 parent f8f190c commit 840e2f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/components/grid/Grid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
useImperativeHandle,
66
useMemo,
77
useState,
8-
type JSX,
8+
type ReactElement,
99
type ReactNode
1010
} from "react";
1111
import { useIsRtl } from "../../core/useIsRtl";
@@ -37,7 +37,7 @@ export function Grid<
3737
style,
3838
tagName = "div" as TagName,
3939
...rest
40-
}: GridProps<CellProps, TagName>): JSX.Element {
40+
}: GridProps<CellProps, TagName>): ReactElement {
4141
const cellProps = useMemoizedObject(cellPropsUnstable);
4242
const CellComponent = useMemo(
4343
() => memo(CellComponentProp, arePropsEqual),

lib/components/list/List.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
useImperativeHandle,
66
useMemo,
77
useState,
8-
type JSX,
8+
type ReactElement,
99
type ReactNode
1010
} from "react";
1111
import { useVirtualizer } from "../../core/useVirtualizer";
@@ -36,7 +36,7 @@ export function List<
3636
tagName = "div" as TagName,
3737
style,
3838
...rest
39-
}: ListProps<RowProps, TagName>): JSX.Element {
39+
}: ListProps<RowProps, TagName>): ReactElement {
4040
const rowProps = useMemoizedObject(rowPropsUnstable);
4141
const RowComponent = useMemo(
4242
() => memo(RowComponentProp, arePropsEqual),

0 commit comments

Comments
 (0)