@nexus-state/vue
v0.1.1
Published
Nexus State integration with Vue
Readme
@nexus-state/vue
Nexus State integration with Vue
Description
The @nexus-state/vue package provides tools for integrating Nexus State with Vue applications.
Installation
npm install @nexus-state/vueKey Features
- Plugins for Vue integration
- Reactive bindings to state
- Support for Composition API and Options API
Usage Example
import { createStore } from '@nexus-state/vue';
const store = createStore({
count: 0
});
// In Vue components
export default {
data() {
return {
count: store.state.count
};
},
methods: {
increment() {
store.setState({ count: this.count + 1 });
}
}
};License
MIT
