@black-cape/microstore 0.0.1 → 0.0.2
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 +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,7 +53,7 @@ npm run test:compatibility
|
|
|
53
53
|
### 1. Define Your Schemas
|
|
54
54
|
|
|
55
55
|
```typescript
|
|
56
|
-
import { MicroStore, MicroStoreProvider, useReactive } from 'microstore';
|
|
56
|
+
import { MicroStore, MicroStoreProvider, useReactive } from '@black-cape/microstore';
|
|
57
57
|
|
|
58
58
|
// Define your data schemas
|
|
59
59
|
const schemas = {
|
|
@@ -77,7 +77,7 @@ const schemas = {
|
|
|
77
77
|
### 2. Setup the Provider
|
|
78
78
|
|
|
79
79
|
```typescript
|
|
80
|
-
import { MicroStore, MicroStoreProvider } from 'microstore';
|
|
80
|
+
import { MicroStore, MicroStoreProvider } from '@black-cape/microstore';
|
|
81
81
|
|
|
82
82
|
const store = new MicroStore({ schemas });
|
|
83
83
|
|
|
@@ -94,7 +94,7 @@ function App() {
|
|
|
94
94
|
|
|
95
95
|
```typescript
|
|
96
96
|
import { useQuery } from '@tanstack/react-query';
|
|
97
|
-
import { useReactive, useMicroStore } from 'microstore';
|
|
97
|
+
import { useReactive, useMicroStore } from '@black-cape/microstore';
|
|
98
98
|
|
|
99
99
|
function UserList() {
|
|
100
100
|
const store = useMicroStore();
|