Skip to content

Commit

Permalink
Fix README typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dphilipson committed Jan 30, 2019
1 parent 645b585 commit 39038b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,11 @@ const reducer = reducerWithoutInitialState<State>()
Starts a builder-chain which produces a "reducer" whose return type is a
supertype of the input state. This is most useful for handling a state which may
be in one of several "modes", each of which responds differently to actions and
can transition to the other modes. Many programs will not have a use for this.
can transition to the other modes. Many applications will not have a use for
this.

Note that the function produced is technically not a reducer because the initial
and updated states are different type.
and updated states are different types.

Example usage:

Expand Down Expand Up @@ -344,8 +345,8 @@ Produces a reducer which applies `handler` when no previously added `.case()`,
the same as [`.build()`](#build), because it is not intended that the chain be
mutated after calling `.default()`.

This is useful if you need a "delegate" reducer should be called on any action
after handling a few specific actions in the parent.
This is useful if you have a "delegate" reducer that should be called on any
action after handling a few specific actions in the parent.

```ts
const NESTED_STATE = {
Expand Down

0 comments on commit 39038b4

Please sign in to comment.