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

Expose code to parent component - refs, useRef, useImperativeHandle #53

Open
sanjarcode opened this issue Nov 22, 2023 · 0 comments
Open
Assignees

Comments

@sanjarcode
Copy link
Member

sanjarcode commented Nov 22, 2023

https://react.dev/reference/react/useImperativeHandle#exposing-a-custom-ref-handle-to-the-parent-component

Is it the same as a mutating the received ref, claim.

Pitfall - prefer props if possible.
Too many cognitive hops, but elegant

@sanjarcode sanjarcode self-assigned this Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant