state-jet 2.0.19 → 2.0.21
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 +12 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,9 +8,10 @@ For more details, see [here](https://statejet.netlify.app).
|
|
|
8
8
|
|
|
9
9
|
## Table of Contents
|
|
10
10
|
|
|
11
|
-
- [Why state-jet
|
|
11
|
+
- [Why state-jet](#why-state-jet)
|
|
12
12
|
- [Documentation](#documentation)
|
|
13
13
|
- [Installation](#installation)
|
|
14
|
+
- [Wiki](#wiki)
|
|
14
15
|
- [GlobalState](#globalstate)
|
|
15
16
|
- [Create GlobalState](#create-globalstate)
|
|
16
17
|
- [Binding Global State to a Component](#binding-global-state-to-a-component)
|
|
@@ -36,12 +37,12 @@ For more details, see [here](https://statejet.netlify.app).
|
|
|
36
37
|
- [Feedbacks and Issues](#feedbacks-and-issues)
|
|
37
38
|
- [License](#license)
|
|
38
39
|
|
|
39
|
-
## Why state-jet
|
|
40
|
+
## Why state-jet
|
|
40
41
|
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
42
|
+
- **No Context, No Providers** – Works outside React, reducing unnecessary re-renders.
|
|
43
|
+
- **Automatic Re-Renders** – Only components using specific state values update.
|
|
44
|
+
- **Super Lightweight** – Ultra small!
|
|
45
|
+
- **SSR & Next.js Support** – Works on both client and server.
|
|
45
46
|
|
|
46
47
|
## Documentation
|
|
47
48
|
|
|
@@ -51,8 +52,6 @@ Tutorials: https://statejet.netlify.app/docs/tutorial/intro/
|
|
|
51
52
|
|
|
52
53
|
API Reference: https://statejet.netlify.app/docs/api-reference/global-state/
|
|
53
54
|
|
|
54
|
-
Wiki: https://deepwiki.com/venkateshsundaram/state-jet
|
|
55
|
-
|
|
56
55
|
## Installation
|
|
57
56
|
|
|
58
57
|
The Statejet package lives in npm. Please see the [installation guide](https://statejet.netlify.app/docs/getting-started/installation-and-setup/).
|
|
@@ -75,6 +74,10 @@ Or if you're using `cdn`:
|
|
|
75
74
|
<script src="https://cdn.jsdelivr.net/npm/state-jet@latest/dist/index.cjs"></script>
|
|
76
75
|
```
|
|
77
76
|
|
|
77
|
+
## Wiki
|
|
78
|
+
|
|
79
|
+
[](https://deepwiki.com/venkateshsundaram/state-jet)
|
|
80
|
+
|
|
78
81
|
## GlobalState
|
|
79
82
|
|
|
80
83
|
The `useStateGlobal` hook is the simplest entry point to State-Jet—-ideal for simple applications with minimal state management needs. It allows you to create stateful values that can be accessed and updated from any component in your application, regardless of their location in the component tree.
|
|
@@ -111,7 +114,7 @@ export default function Counter() {
|
|
|
111
114
|
|
|
112
115
|
## Slices
|
|
113
116
|
|
|
114
|
-
Slices in state-jet represent logical groupings of state that help organize application data into manageable pieces.
|
|
117
|
+
Slices in state-jet represent logical groupings of state that help organize application data into manageable pieces.
|
|
115
118
|
|
|
116
119
|
### Create Slice
|
|
117
120
|
|