Closed maslianok closed 3 years ago
Defaults to any
any
const { width, height, ref } = useResizeDetector(); <div ref={ref}> // ref: React.MutableRefObject<any>
With typings
const { width, height, ref } = useResizeDetector<HTMLDivElement>(); <div ref={ref}> // ref: React.MutableRefObject<HTMLDivElement>
Defaults to
any
With typings