Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()? #19

Open
phutngo opened this issue Jul 19, 2021 · 0 comments

Comments

@phutngo
Copy link

phutngo commented Jul 19, 2021

First, just want to say thank you for making this beautiful component!

Chrome is giving this warning at runtime. Anything I can do to solve this? Thank you for your help!
"Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
Check the render method of NightModeToggle."

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

No branches or pull requests

1 participant