state-jet 1.0.2 β†’ 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +28 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # ⚑ fast-state: Ultra-Lightweight Global State for React
1
+ # πŸš€ state-jet: Ultra-Lightweight Global State for React
2
2
 
3
3
  A zero-boilerplate, ultra-fast global state management library for React. No context, reducers, or providersβ€”just simple reactive state.
4
4
 
5
- ## πŸš€ Why fast-state?
5
+ ## πŸš€ Why state-jet?
6
6
  - βœ… **No Context, No Providers** – Works outside React, reducing unnecessary re-renders.
7
7
  - βœ… **Automatic Re-Renders** – Only components using specific state values update.
8
8
  - βœ… **Super Lightweight** – Less than **1KB** minified!
@@ -12,3 +12,29 @@ A zero-boilerplate, ultra-fast global state management library for React. No con
12
12
  ```bash
13
13
  npm install state-jet
14
14
  ```
15
+
16
+ ## Example Usage
17
+ ```bash
18
+ import { useStateGlobal } from "state-jet";
19
+
20
+ const counter = useStateGlobal("counter", 0);
21
+
22
+ function Counter() {
23
+ const count = counter.useStore();
24
+ return <button onClick={() => counter.set(count + 1)}>Count: {count}</button>;
25
+ }
26
+ ```
27
+
28
+ ## ⚑ Comparison with Zustand
29
+
30
+ |Feature|Redux|Recoil|MobX|Jotai|state-jet|
31
+ |:----|:----|:----|:----|:----|:----|
32
+ |Setup Required|βœ… Yes|βœ… Yes|⚠️ Yes|❌ No|❌ No|
33
+ |Bundle Size|πŸš€ Large|πŸš€ Medium|⚑ Small|⚑ Small|πŸ”₯ Ultra-Small (<1KB)|
34
+ |Reactivity|⚠️ Reducers|βœ… Atoms|βœ… Proxy-Based|βœ… Signals|βœ… Signal-Like|
35
+ |Renders Only Affected|❌ No|βœ… Yes|βœ… Yes|βœ… Yes|βœ… Yes|
36
+ |Derived/Computed State|❌ No|βœ… Yes|βœ… Yes|βœ… Yes|βœ… Yes|
37
+ |Optimistic Updates|❌ No|❌ No|❌ No|❌ No|βœ… Yes|
38
+ |Undo/Redo|❌ No|❌ No|❌ No|❌ No|βœ… Yes|
39
+ |WebSocket Multi-Tab Sync|❌ No|❌ No|❌ No|❌ No|βœ… Yes|
40
+ |CRDT Conflict Resolution|❌ No|❌ No|❌ No|❌ No|βœ… Yes|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "state-jet",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Ultra-lightweight global state management for React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",