1.0.5 • Published 1 year ago

@kalu5/vue_hooks v1.0.5

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

Use

pnpm i @kalu5/vue_hooks

useState

eg:

<script setup lang="ts">
import { useState } from '@kalu5/vue_hooks'
const [state, setState] = useState(0)
</script>

<template>
  <h1>{{ state }}</h1>
  <button @click="setState((state) => state.value + 1)">
    Add
  </button>
  <button @click="setState((state) => state.value - 1)">
    Minus
  </button>
</template>
1.0.5

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