vn-state

1.0.0 • Public • Published

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:

/vn-state/

    Package Sidebar

    Install

    npm i vn-state

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    3.55 kB

    Total Files

    6

    Last publish

    Collaborators

    • hoainhaannguyen