From 672db4a3963cf2d5702149ecc8f86395bb62b55e Mon Sep 17 00:00:00 2001 From: Simon Kalt Date: Mon, 6 Jan 2025 15:47:31 +0100 Subject: [PATCH] fix(types): import JSX type from react The global type is removed in React 19 --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index df2a1893..2cf060f7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,4 +1,4 @@ -import type { PropsWithChildren, ReactElement, ReactNode } from 'react'; +import type { JSX, PropsWithChildren, ReactElement, ReactNode } from 'react'; import React, { Component } from 'react'; import fastCompare from 'react-fast-compare'; import invariant from 'invariant';