From cddad5150fe8993ba2754f7f0219a8ab195db4da Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Tue, 1 Oct 2019 21:41:56 -0700 Subject: [PATCH] Swap order of increment and decrement in Counter examples I think UI-wise, decrement comes first. --- content/docs/hooks-reference.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index bf43fdebbce..7352b320828 100644 --- a/content/docs/hooks-reference.md +++ b/content/docs/hooks-reference.md @@ -60,8 +60,8 @@ function Counter({initialCount}) { <> Count: {count} - + ); } @@ -231,8 +231,8 @@ function Counter() { return ( <> Count: {state.count} - + ); } @@ -290,8 +290,8 @@ function Counter({initialCount}) { onClick={() => dispatch({type: 'reset', payload: initialCount})}> Reset - + ); }