Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Improve formatting
  • Loading branch information
CodinCat committed May 12, 2017
commit 2f0abe824c28917fc775c87c2ff3fb2a3cb49d7c
5 changes: 4 additions & 1 deletion docs/recipes/reducers/ImmutableUpdatePatterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ function insertItem(array, action) {
}

function removeItem(array, action) {
return [...array.slice(0, action.index), ...array.slice(action.index + 1)]
return [
...array.slice(0, action.index),
...array.slice(action.index + 1)
]
}
```

Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/reducers/InitializingState.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Why is it `42`, and not `0`, this time? Because `createStore` was called with `4
Now let's consider a case where you use `combineReducers()`.
You have two reducers:

```js
```js
function a(state = 'lol', action) {
return state
}
Expand Down