Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in description of #createReducer #16

Merged
merged 2 commits into from
Oct 20, 2015
Merged
Changes from all commits
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
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