Skip to content

Commit c7b6fb3

Browse files
authored
remove private namespace JSX
1 parent c7b8503 commit c7b6fb3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react/src/reactrouter.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
import type { Client, Integration, Span, TransactionSource } from '@sentry/types';
1717
import hoistNonReactStatics from 'hoist-non-react-statics';
1818
import * as React from 'react';
19+
import type { ReactElement } from 'react';
1920

2021
import type { Action, Location } from './types';
2122

@@ -32,7 +33,7 @@ export type RouteConfig = {
3233
[propName: string]: unknown;
3334
path?: string | string[];
3435
exact?: boolean;
35-
component?: JSX.Element;
36+
component?: ReactElement;
3637
routes?: RouteConfig[];
3738
};
3839

0 commit comments

Comments
 (0)