1.0.4 • Published 1 year ago

easy-state-maneger-vue v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Simple state maneger for Vue

Install

npm i easy-state-maneger-vue
State maneger for React (https://github.com/Senails/easy-state-maneger/tree/React)

Example for Vue

import { createEasyStore } from "easy-state-maneger-vue";

const initState = {
    count: 0
}

export const {useSelector, updateStore} = createEasyStore(initState);

export function Action(){
    updateStore((state)=>{
        state.count++;
    });
}
<script setup lang="ts">
    import { useSelector } from ".state";

    const count = useSelector((s)=>s.count);

</script>
<template>
    <button @click="Action">{{ count }}</button>
</template>
1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago