vn-state v1.0.0
Simple State for JavaScript Applications
Installation
npm install vn-state
Usage
const appState = new VNState(initialState)
// Get current state
const currentState = appState.currentState
// Commit state changes
appState.commit(updatedState)
// Effect
appState.effect(callBackFunction)
Support
Nodejs version >= 18.0.0
Contact
I hope you found it useful.
Let's get connected! You can find me on:
- Medium: https://medium.com/@nhannguyendevjs/
- Dev: https://dev.to/nhannguyendevjs/
- Hashnode: https://nhannguyen.hashnode.dev/
- Linkedin: https://www.linkedin.com/in/nhannguyendevjs/
- X (formerly Twitter): https://twitter.com/nhannguyendevjs/
- Buy Me a Coffee: https://www.buymeacoffee.com/nhannguyen/