We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae48549 commit 47b3fdeCopy full SHA for 47b3fde
1 file changed
README.md
@@ -1,4 +1,4 @@
1
-# useRestate
+# ⚡️ useRestate
2
3
A React Hook that subscribes your state selector to the store and memoizes your action dispatchers.
4
@@ -36,7 +36,7 @@ npm install use-restate
36
- Avoid needless re-renders
37
- An API that you're used to
38
- Works with any Redux-like store
39
-- Memoized action dispatch functions
+- Memoize single/multiple action dispatch functions
40
- Quick access to store dispatch
41
- Full Typescript support
42
@@ -69,6 +69,8 @@ export default function App() {
69
}
70
```
71
72
+## API
73
+
74
### `useRestate(mapState)`
75
76
Automatically subscribe your mapState selectors to the store so that each of them update on every change.
0 commit comments