Skip to content

Commit 338bfbe

Browse files
authored
Update hook to function
1 parent af81f1c commit 338bfbe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/createLocalStorageDispatch/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ function Counter() {
4040
const dispatch = createLocalStorageDispatch(key, reducer);
4141
```
4242

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

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

0 commit comments

Comments
 (0)