Don't import the whole lodash library
Closed this issue · 1 comments
hirbod commented
You are importing the whole lodash library for a single function. This is a terrible pattern and will bloat the bundle, since there is no tree shaking at all.
If you just need isEqual, please use it like this:
npm install --save lodash.isequal
# or
yarn add lodash.isequal
and import
import isEqual from 'lodash.isequal';
ThakurBallary commented