@t8/react-store 1.0.29 → 1.0.30
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 +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -156,7 +156,7 @@ let ItemCard = ({ id }) => {
|
|
|
156
156
|
|
|
157
157
|
## Store data
|
|
158
158
|
|
|
159
|
-
A store can contain data of any type.
|
|
159
|
+
A store can contain data of any type. With TypeScript, the type of a store containing data of type `T` is `Store<T>` which can be inferred from the data passed to `new Store(data)`.
|
|
160
160
|
|
|
161
161
|
Live demos:<br>
|
|
162
162
|
[Primitive value state](https://codesandbox.io/p/sandbox/rtng37?file=%2Fsrc%2FPlusButton.jsx)<br>
|