From 36eeb6ac62a2299ea7d29c0f72cf720eadf361e6 Mon Sep 17 00:00:00 2001 From: Benjamin Zalasky Date: Mon, 19 Oct 2015 14:20:58 -0400 Subject: [PATCH 1/2] Fix typo in description of #createReducer Changed "getting RIDE of" to "getting RID of." --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 63d98cd..2b95ed9 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ 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: +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) From af7db1fb86fb5a67fec1bc33ed6b730b5742bec1 Mon Sep 17 00:00:00 2001 From: Benjamin Zalasky Date: Mon, 19 Oct 2015 14:23:53 -0400 Subject: [PATCH 2/2] Rephrase description of createReducer for clarity --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2b95ed9..9efd412 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ 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 +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.