mirror of
https://github.com/jbranchaud/til
synced 2026-01-06 16:48:01 +00:00
Add create-react-app Comes With Lodash as a react til
This commit is contained in:
11
react/create-react-app-comes-with-lodash.md
Normal file
11
react/create-react-app-comes-with-lodash.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# create-react-app Comes With Lodash
|
||||
|
||||
Lodash is already a dependency of create-react-app. If you need one of those
|
||||
fancy Lodash functions, there's no need to `yarn add lodash` to your
|
||||
project, all you need is an import statement.
|
||||
|
||||
```javascript
|
||||
import chunk from 'lodash/chunk';
|
||||
```
|
||||
|
||||
h/t Dillon Hafer
|
||||
Reference in New Issue
Block a user