From 377872c8d998e2ba4408fd9690544aaddb436671 Mon Sep 17 00:00:00 2001 From: Aaron Mast Date: Mon, 13 May 2019 22:24:03 -0400 Subject: [PATCH] Fix useReducer example --- content/docs/hooks-reference.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/hooks-reference.md b/content/docs/hooks-reference.md index 24145eac218..7a91e9253d7 100644 --- a/content/docs/hooks-reference.md +++ b/content/docs/hooks-reference.md @@ -226,7 +226,7 @@ function reducer(state, action) { } } -function Counter({initialState}) { +function Counter() { const [state, dispatch] = useReducer(reducer, initialState); return ( <>