@t8/react-store 1.0.34 → 1.0.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
# T8 React Store
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
*`useState()`-like React app state management*
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
🔹 Similar to `useState()`
|
|
5
|
+
[](https://www.npmjs.com/package/@t8/react-store)   
|
|
8
6
|
|
|
9
7
|
```diff
|
|
10
8
|
+ let store = new Store(0);
|
|
@@ -21,9 +19,11 @@
|
|
|
21
19
|
};
|
|
22
20
|
```
|
|
23
21
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
- Similar to `useState()`
|
|
23
|
+
- No boilerplate
|
|
24
|
+
- Quick transition from local state
|
|
25
|
+
- Easily integrates with Immer
|
|
26
|
+
- SSR- and CSR-compatible
|
|
27
27
|
|
|
28
28
|
Installation: `npm i @t8/react-store`
|
|
29
29
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@t8/react-store",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.35",
|
|
4
|
+
"description": "useState()-like React app state management",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
@@ -46,6 +46,6 @@
|
|
|
46
46
|
"typescript": "^5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@t8/store": "^1.1.
|
|
49
|
+
"@t8/store": "^1.1.10"
|
|
50
50
|
}
|
|
51
51
|
}
|