UNPKG

beautiful-react-hooks

Version:

A collection of beautiful (and hopefully useful) React hooks to speed-up your components and hooks development

7 lines (6 loc) 229 B
import useGlobalEvent from './useGlobalEvent'; /** * Returns a function that accepts a callback to be performed when the window resize. */ const useWindowResize = () => useGlobalEvent('resize'); export default useWindowResize;