From 720bd119c158c770c7fb9156cdeccc905c8a7fdd Mon Sep 17 00:00:00 2001 From: CT Wu Date: Sun, 5 Mar 2017 11:59:29 +0800 Subject: [PATCH] Update API.md Fix a typo --- docs/API.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)