generated from almond-bongbong/node-module-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
In React 19, using the ConfettiBoom component (great work btw.!) triggers a TypeScript error:
error TS2786: 'ConfettiBoom' cannot be used as a JSX component.
Its type '(props: Props) => Element' is not a valid JSX element type.
Type '(props: Props) => Element' is not assignable to type '(props: any) => ReactNode | Promise<ReactNode>'.
Type 'Element' is not assignable to type 'ReactNode | Promise<ReactNode>'.
Property 'children' is missing in type 'ReactElement<any, any>' but required in type 'ReactPortal'.
To reproduce, simply set up a project using React 19 and add the above component. Everything was working fine in React 18.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels