beekai-oss / react-simple-animate

🎯 React UI animation made easy
https://react-simple-animate.now.sh/
MIT License
1.82k stars 61 forks source link

TypeError: useRef$1 is not a function #60

Closed JonathanStefanov closed 5 years ago

JonathanStefanov commented 5 years ago

Description of the bug I get that error whenever I put a component in my code. I do not get the error then that component is not there.

Screenshots Error Message My Code

bluebill1049 commented 5 years ago

what's your react version? is your react support hooks? 16.8

JonathanStefanov commented 5 years ago

My react version is 16.6.3. Should I upgrade it to 16.8?

JonathanStefanov commented 5 years ago

https://github.com/kesne/with-react-hooks I've tried to make it support hooks with that but it does not seem to work

bluebill1049 commented 5 years ago

@JonathanStefanov yeah I think you need to upgrade your React to 16.8 otherwise, you can use the older version 2.x

bluebill1049 commented 5 years ago

going to close this issue, feel free to reopen if you still have questions around it.