-
Notifications
You must be signed in to change notification settings - Fork 322
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
useRef hook problem #126
Comments
same issue |
+1 |
9 tasks
+1 |
1 similar comment
+1 |
You cannot use ref on the original QRCode component, as a work around it you can wrap the QRCode component with a div element and pass the rep into the div element like so:
and then you can get the QRCode canvas element like so: |
Thanks! That worked! |
1 similar comment
Thanks! That worked! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone, i trying to get de ref of the component with hooks and im getting null or undenifed
any suggestions to get the correct ref of canvas element ?
The text was updated successfully, but these errors were encountered: