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

Return a tuple instead of an object #1

Closed
ZeeCoder opened this issue Dec 19, 2018 · 1 comment
Closed

Return a tuple instead of an object #1

ZeeCoder opened this issue Dec 19, 2018 · 1 comment

Comments

@ZeeCoder
Copy link
Owner

https://twitter.com/dan_abramov/status/1055702961303642112?s=20

Also return a ref to be used instead of expecting the user to create one:

const [ref, width, height] = useResizeObserver();
@ZeeCoder
Copy link
Owner Author

Done in v2

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