1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00

Add create-react-app Comes With Lodash as a react til

This commit is contained in:
jbranchaud
2018-01-31 11:43:08 -06:00
parent 63a5d64655
commit 36250fe567
2 changed files with 13 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
For a steady stream of TILs from a variety of rocketeers, checkout
[til.hashrocket.com](https://til.hashrocket.com/).
_600 TILs and counting..._
_601 TILs and counting..._
---
@@ -421,6 +421,7 @@ _600 TILs and counting..._
### React
- [Accessing Env Vars In create-react-app](react/accessing-env-vars-in-create-react-app.md)
- [create-react-app Comes With Lodash](react/create-react-app-comes-with-lodash.md)
- [Dispatch Anywhere With Redux](react/dispatch-anywhere-with-redux.md)
- [Force A Component To Only Have One Child](react/force-a-component-to-only-have-one-child.md)
- [Inactive And Active Component Styles With Radium](react/inactive-and-active-component-styles-with-radium.md)

View 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