Skip to content

Commit

Permalink
Update hook to function
Browse files Browse the repository at this point in the history
  • Loading branch information
blenderskool authored Jun 28, 2021
1 parent af81f1c commit 338bfbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/createLocalStorageDispatch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ function Counter() {
const dispatch = createLocalStorageDispatch(key, reducer);
```

This hook accepts:
This function accepts:
- `key` — key for localStorage,
- `reducer` — reducer function of type `(data, action) => newData`,

This hook returns:
This function returns:
- `dispatch` — method to dispatch actions.

0 comments on commit 338bfbe

Please sign in to comment.