You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,16 +23,6 @@ function Component() {
23
23
}
24
24
```
25
25
26
-
### Features
27
-
28
-
- ⏬ Lightweight
29
-
- ✅ Concurrent React ready (avoids rendering stale state)
30
-
- 🐋 Only updates components that need to be updated
31
-
- 🔂 Uses an external event subscription to short-circuit context propagation
32
-
- 🎈 Full Flow and TypeScript support coming soon
33
-
- ⚛️ Works with your existing Redux-like store
34
-
- 🎮 You’re in full control of your store and can use it outside React as well
35
-
36
26
## Requirements
37
27
38
28
__⚠️ To use `useSubstate`, you will need the unstable and experimental React 16.7.0-alpha.__
@@ -45,6 +35,16 @@ __⚠️ To use `useSubstate`, you will need the unstable and experimental React
45
35
npm install --save use-substate
46
36
```
47
37
38
+
## Features
39
+
40
+
- ⏬ Lightweight
41
+
- ✅ Concurrent React ready (avoids rendering stale state)
42
+
- 🐋 Only updates components that need to be updated
43
+
- 🔂 Uses an external event subscription to short-circuit context propagation
44
+
- 🎈 Full Flow and TypeScript support coming soon
45
+
- ⚛️ Works with your existing Redux-like store
46
+
- 🎮 You’re in full control of your store and can use it outside React as well
47
+
48
48
## Usage
49
49
50
50
You can use `useSubstate` with your existing [Redux][] store or with a simple alternative (like [`create-state`](https://github.com/philipp-spiess/create-state)). This package will export a [React Context](https://reactjs.org/docs/context.html) consumer (`SubstateContext`) as well the `useSubstate` hook.
0 commit comments