-
Notifications
You must be signed in to change notification settings - Fork 136
Open
Description
After upgrading to React 19, the useCountUp hook started to throw a TypeScript warning.
Type 'RefObject<HTMLElement | null>' is not assignable to type 'string | RefObject<HTMLElement>'.
Type 'RefObject<HTMLElement | null>' is not assignable to type 'RefObject<HTMLElement>'.
Type 'HTMLElement | null' is not assignable to type 'HTMLElement'.
Type 'null' is not assignable to type 'HTMLElement'.ts(2322)
Adding support for React 19 and generating new types should fix the issue.
rafaelquintanilha, ClementChaumel and mihkeleidast
Metadata
Metadata
Assignees
Labels
No labels