Reactive state management patterns with createState, selectors, computed values, and performance optimizations. Demonstrating @core/state capabilities.
Demonstrates atomic state updates with fine-grained reactivity
Current Value
Track how state updates affect component rendering
State Updates
Render Count
// Create atomic state
const counterState = createState({ count: 0 });
// Subscribe with selector
const count = useSelector(counterState, s => s.count);
// Update state
counterState.setState(s => ({ count: s.count + 1 }));