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 })