okonet / react-container-dimensions

Wrapper component that detects element resize and passes new dimensions down the tree. Based on https://github.com/wnr/element-resize-detector
MIT License
229 stars 26 forks source link

Add debounce option #65

Closed ghost closed 4 months ago

ghost commented 3 years ago

Add debounce functionality to the project to avoid overload of 'scroll' event.

Simple call ... for a 200 millisecond debounce.