Skip to content

Commit

Permalink
Update API.md
Browse files Browse the repository at this point in the history
Fix a typo
  • Loading branch information
wuct authored Mar 5, 2017
1 parent b200436 commit 720bd11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ The first form accepts a function which maps the previous state value to a new s
```js
const addCounting = compose(
withState('counter', 'setCounter', 0),
withProps({
withHandlers({
increment: ({ setCounter }) => () => setCounter(n => n + 1),
decrement: ({ setCounter }) => () => setCounter(n => n - 1),
reset: ({ setCounter }) => () => setCounter(0)
Expand Down

0 comments on commit 720bd11

Please sign in to comment.