Skip to content

Commit

Permalink
Merge pull request indexiatech#16 from bzalasky/patch-1
Browse files Browse the repository at this point in the history
Fix typo in description of #createReducer
  • Loading branch information
Asaf Shakarchi committed Oct 20, 2015
2 parents 33a2471 + af7db1f commit a54beba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ export default createStore(reducer, store);

## Immutable Handler Map reducer creator

Using `createReducer` is an optional function that creates a reducer from a collection of handlers, except
getting ride of the _switch_ statement, it also provides the following benefits:
Using `createReducer` is an optional function that creates a reducer from a collection of handlers. In addition to
getting rid of the _switch_ statement, it also provides the following benefits:

1. If the given `initialState` type is mutated, it will get converted to an immutable type.
1. An error is produced in case a reducer handler returns a mutated state (not recommended but this behavior can be disabled)
Expand Down

0 comments on commit a54beba

Please sign in to comment.