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

feat(refactor): Generalise useSize hook #2312

Merged
merged 2 commits into from
Nov 2, 2024
Merged

feat(refactor): Generalise useSize hook #2312

merged 2 commits into from
Nov 2, 2024

Conversation

rossbulat
Copy link
Collaborator

@rossbulat rossbulat commented Nov 2, 2024

This PR refines the useSize custom React hook, which tracks the width and height of a specified HTML element, updating dynamically when an outer element (or window, by default) resizes.

@rossbulat rossbulat merged commit 51ec08a into main Nov 2, 2024
7 checks passed
@rossbulat rossbulat deleted the rb-hooks-amend branch November 2, 2024 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

1 participant