Skip to content
Myr

Fix curried reducer code example in README

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

authored by Alex Kessock · committed by GitHub · parent 4055768 · 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