glennreyes / glennreyes/react-countup

Functions are not valid as a React child

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

Description

When I use React Countup like this:

```

{({ countUpRef, start }) => (


{start}

)}

```

It works normally, but when I run my tests, I have this warning:

![image](https://user-images.githubusercontent.com/27022914/97478764-254f2300-1930-11eb-810f-fe68af3685ea.png)

I believe it is because of the way that **({countUpRef, start})** is used.

Does anyone know how I can improve or fix this?

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.