Skip to content

Commit

Permalink
fix readme headings
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Dashney committed Jun 27, 2018
1 parent 1dada4a commit 1849e63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const counterActions = mountActions('counter', createActions({
}))
```
#### Defining reducers
### Defining reducers
`createReducer` creates a reducer which switches based on action type, and passes the action `payload` directly to your sub-reducer function:
Expand All @@ -158,7 +158,7 @@ const counterReducer = createReducer(INITIAL_STATE, {
Note that, because we passed the action creators directly as the object keys, the `toString()` function will be called on them automatically.
#### Defining selectors
### Defining selectors
The `mountSelectors` helper removes the boilerplate of selecting the state managed by our reducer (`state.counter`):
Expand All @@ -178,7 +178,7 @@ const counterSelectors = mountSelectors('path.to.counter', {
}
```
#### Defining reusable redux logic
### Defining reusable redux logic
Putting the above examples together, we have reduced much boilerplate & repetition:
Expand Down

0 comments on commit 1849e63

Please sign in to comment.