glennreyes / glennreyes/react-countup

React 19 support

Open
#877 2 comments 4 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.1k
Forks
138
PR merge metrics
No merged PRs in 30d

Description

After upgrading to React 19, the `useCountUp` hook started to throw a TypeScript warning.

```
Type 'RefObject' is not assignable to type 'string | RefObject'.
Type 'RefObject' is not assignable to type 'RefObject'.
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.