Skip to content
Myr

Merge pull request #71 from Keysox/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix curried reducer code example in README

authored by Michel Weststrate · committed by GitHub · parents 4055768, c3c2d80 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:readme.md+2 added-1 removed
162 unmodified lines
163164const byId = produce((draft, action) => {165 switch (action.type) {166 case RECEIVE_PRODUCTS:167 action.products.forEach(product => {167 action.products.forEach(product => {168 draft[product.id] = product169 })170 })171 }172})173```
90 unmodified lines