React 19 support with Typescript? #243
-
I tried to upgrade a project to React 19, where this library is used. I got errors due to incompatibilities of the Is react 19 supported? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is the first time I've heard complaints of the library not working with React 19. I tried this code with React 19 in a new Vite project: import { SkeletonTheme } from "react-loading-skeleton";
import { PropsWithChildren } from "react";
interface MySkeletonThemeProps extends PropsWithChildren {}
function MySkeletonTheme({ children }: MySkeletonThemeProps) {
return <SkeletonTheme>{children}</SkeletonTheme>;
}
function App() {
return <MySkeletonTheme />;
} It compiled without issue. Can you share a minimal repro of your issue? Is it possible you have multiple versions of |
Beta Was this translation helpful? Give feedback.
This is the first time I've heard complaints of the library not working with React 19.
I tried this code with React 19 in a new Vite project:
It compiled without issue. Can you share a minimal repro of your issue?
Is it possible you have multiple versions of
@types/react
in your repo? This is a fairly common issue I have hit.