@expressive/mvc 0.84.3 → 0.86.0

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 CHANGED
@@ -26,7 +26,7 @@ npm install @expressive/mvc
26
26
  A `State` is a class whose fields are reactive - read to subscribe, assign to update. Getters are cached computed values.
27
27
 
28
28
  ```ts
29
- import State from '@expressive/mvc';
29
+ import { State } from '@expressive/mvc';
30
30
 
31
31
  class Counter extends State {
32
32
  count = 0;
@@ -62,7 +62,7 @@ Field initializers that change how a property behaves:
62
62
  | `has()` | an owned reactive collection - an ordered list or a spawned pool |
63
63
 
64
64
  ```ts
65
- import State, { set, has, map } from '@expressive/mvc';
65
+ import { State, set, has, map } from '@expressive/mvc';
66
66
 
67
67
  class Cart extends State {
68
68
  items = has<Item>(); // reactive collection
@@ -92,7 +92,7 @@ timer.set(null); // destroy - runs cleanup, freezes state
92
92
  States find each other through context, and compose by holding one another:
93
93
 
94
94
  ```ts
95
- import State, { get } from '@expressive/mvc';
95
+ import { State, get } from '@expressive/mvc';
96
96
 
97
97
  class Session extends State {
98
98
  user = 'guest';