Skip to content

Commit 47b3fde

Browse files
authored
Update README.md
1 parent ae48549 commit 47b3fde

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# useRestate
1+
# ⚡️ useRestate
22

33
A React Hook that subscribes your state selector to the store and memoizes your action dispatchers.
44

@@ -36,7 +36,7 @@ npm install use-restate
3636
- Avoid needless re-renders
3737
- An API that you're used to
3838
- Works with any Redux-like store
39-
- Memoized action dispatch functions
39+
- Memoize single/multiple action dispatch functions
4040
- Quick access to store dispatch
4141
- Full Typescript support
4242

@@ -69,6 +69,8 @@ export default function App() {
6969
}
7070
```
7171

72+
## API
73+
7274
### `useRestate(mapState)`
7375

7476
Automatically subscribe your mapState selectors to the store so that each of them update on every change.

0 commit comments

Comments
 (0)