Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 26, 2022. It is now read-only.

A React component that allows you to use a ResizeObserver to measure an element's size.

License

NotificationsYou must be signed in to change notification settings

ZeeCoder/react-resize-observer

Repository files navigation

This package is nowofficially deprecated.
Use theuse-resize-observer hook instead.

If you want the old API, then create a react component, like so:

importuseResizeObserverfrom"use-resize-observer";exportdefaultfunction({ children}){const{ ref, width, height}=useResizeObserver();returnchildren(ref,width,height);}

Alternatively, see the last readme for v2here.

About

A React component that allows you to use a ResizeObserver to measure an element's size.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp