From e37bfd5f73ce4f126c372539def24a6555dc629c Mon Sep 17 00:00:00 2001 From: Jan Hesters <31096420+janhesters@users.noreply.github.com> Date: Tue, 23 Apr 2019 20:16:06 +0200 Subject: [PATCH] Fix error in docs for useSelector (#1255) --- docs/api/hooks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/hooks.md b/docs/api/hooks.md index 921255429..7d2bf0a0f 100644 --- a/docs/api/hooks.md +++ b/docs/api/hooks.md @@ -107,7 +107,7 @@ You may call `useActions()` multiple times in a single component. import React from 'react' import { useActions } from 'react-redux' -const increaseCounter = ({ amount }) => ({ +const increaseCounter = amount => ({ type: 'increase-counter', amount })