Skip to content

About

React Hook that triggers on window resize

Topics

Resources

Stars

16 stars

Watchers

5 watching

Forks

Latest commit

 

History

52 Commits

Folders and files

Repository files navigation

useResizing

React Hook that triggers on window resize

Example
In your React component:

import useResize from "use-resizing"

function SizeInfo() {
  const screenSize = useResize()

  return <div>size = ({ screenSize.width }, { screenSize.height })</div>
}

Settings:
debounceTime - number (default 100ms)

...
const screenSize = useResize({debounceTime:200})

Word from author

Have fun! ✌️

Supported by Halo lab

About

React Hook that triggers on window resize

Topics

Resources

Stars

16 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages