diff --git a/docs/API.md b/docs/API.md index ea6a9087..e2d3e46e 100644 --- a/docs/API.md +++ b/docs/API.md @@ -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)