Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React 19 support #877

Open
franknoel opened this issue Feb 20, 2025 · 0 comments
Open

React 19 support #877

franknoel opened this issue Feb 20, 2025 · 0 comments

Comments

@franknoel
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant