1.0.4 • Published 8 months ago

easy-state-maneger-vue v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months 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

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago