context-scoped-state 0.0.5 → 0.0.6

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 +6 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -30,12 +30,16 @@ pnpm add context-scoped-state
30
30
 
31
31
  > **Peer Dependencies:** React 18+
32
32
 
33
+ ## Try it Online
34
+
35
+ [![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/HarshRohila/context-scoped-state/tree/master/examples/playground)
36
+
33
37
  ## Quick Start
34
38
 
35
39
  ### 1. Create Your Store (one file, one export)
36
40
 
37
41
  ```tsx
38
- // stores/counterStore.ts
42
+ // counterStore.ts
39
43
  import { Store, createStoreHook } from 'context-scoped-state';
40
44
 
41
45
  class CounterStore extends Store<{ count: number }> {
@@ -59,7 +63,7 @@ export const useCounterStore = createStoreHook(CounterStore);
59
63
  ### 2. Use in Your App
60
64
 
61
65
  ```tsx
62
- import { useCounterStore } from './stores/counterStore';
66
+ import { useCounterStore } from './counterStore';
63
67
 
64
68
  function Counter() {
65
69
  const counterStore = useCounterStore();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "context-scoped-state",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {