react-confetti-explosion
react-confetti-explosion copied to clipboard
The package shouldn't depend on all of `lodash`
Currently, the bundle size is roughly 31kB even though the only lodash
functions used are isEqual()
, round()
, and range()
.
lodash
is not tree shakeable.
Some of these can be done with vanilla JS. Another alternative would be using lodash functions re-exported as npm modules, eg lodash.range.