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

@reach/alert: Function components cannot be given refs. #214

Closed
anmdotdev opened this issue Jun 18, 2019 · 0 comments
Closed

@reach/alert: Function components cannot be given refs. #214

anmdotdev opened this issue Jun 18, 2019 · 0 comments
Labels
Status: Unconfirmed Bug reports without a repro, not yet confirmed

Comments

@anmdotdev
Copy link

Cannot assign a ref to the Alert Component.
Function components need to explicitly handle refs by using forwardRef

Error:

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
@bradwestfall bradwestfall added the Status: Unconfirmed Bug reports without a repro, not yet confirmed label Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed Bug reports without a repro, not yet confirmed
Projects
None yet
Development

No branches or pull requests

2 participants