@nexus-state/family
v0.1.3
Published
Utilities for working with state "families" in Nexus State
Downloads
363
Readme
@nexus-state/family
Utilities for working with state "families" in Nexus State
Description
The @nexus-state/family package provides tools for managing groups of related states in an application.
Installation
npm install @nexus-state/familyKey Features
- Creating and managing state "families"
- Synchronization of related states
- Support for hierarchical structure
Usage Example
import { createFamily } from '@nexus-state/family';
const family = createFamily({
user: {
name: '',
age: 0
},
settings: {
theme: 'light'
}
});
// Working with state
family.setState({
user: {
name: 'John',
age: 30
}
});License
MIT
