DEV Community

Discussion on: How to debounce and throttle functions with React hooks

Collapse
 
miketalbot profile image
Mike Talbot ⭐

Totally agreed. Also, if you are going to use lodash, try lodash-es if you use 10+ modules and in all cases only import the actual things you use so that tree shaking can reduce the size of the output. Importing _ from lodash will make the bundle size very large and on the front end this matters.

Collapse
 
shubhamreacts profile image
Shubham Khatri

True.