@simplestack/store 0.6.4 → 0.6.5
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 +13 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Simple Store
|
|
2
2
|
|
|
3
|
+
<div>
|
|
4
|
+
<a href='https://github.com/bholmesdev/simplestack-store' rel='nofollow'>
|
|
5
|
+
<img alt='stars' src='https://img.shields.io/github/stars/bholmesdev/simplestack-store?color=blue'>
|
|
6
|
+
</a>
|
|
7
|
+
<a href='https://www.npmjs.com/package/@simplestack/store' rel='nofollow'>
|
|
8
|
+
<img alt='npm' src='https://img.shields.io/npm/v/@simplestack/store?color=blue'>
|
|
9
|
+
</a>
|
|
10
|
+
</div>
|
|
11
|
+
|
|
12
|
+
[](https://www.youtube.com/watch?v=gXz-lLIJbMI)
|
|
13
|
+
|
|
3
14
|
A simple, `select`-xcellent state management library for React.
|
|
4
15
|
|
|
5
16
|
The goal: make a storage solution as powerful as Zustand or Redux, without complicated functions to set and select state.
|
|
@@ -68,7 +79,7 @@ const title = doc.select("title");
|
|
|
68
79
|
|
|
69
80
|
#### useStoreValue(store)
|
|
70
81
|
|
|
71
|
-
React hook to subscribe to a store and get its current value.
|
|
82
|
+
A React hook to subscribe to a store and get its current value.
|
|
72
83
|
|
|
73
84
|
- Parameters: `store: Store<T> | undefined`
|
|
74
85
|
- Returns: `T | undefined`
|
|
@@ -102,7 +113,7 @@ These types are exported for TypeScript users.
|
|
|
102
113
|
|
|
103
114
|
## Contributing
|
|
104
115
|
|
|
105
|
-
|
|
116
|
+
We are open to contributions! **Before submitting your feature request**, please read the [CONTRIBUTING.md](CONTRIBUTING.md) for our issue and PR process.
|
|
106
117
|
|
|
107
118
|
## License
|
|
108
119
|
|