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

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

npm versionbuild

Install

yarn add @zeecoder/react-resize-observer# ornpm install --save @zeecoder/react-resize-observer

Usage

constApp=()=>(<ResizeObserver>{(ref,width,height)=>(<divref={ref}>        My size is{width}x{height}</div>)}</ResizeObserver>);

Notes

Related

License

MIT

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