Vue
Install
npm install overmind overmind-vueHooks (experimental)
import { createHooks } from 'overmind-vue/vu3'
export const config = {
state: {
foo: 'bar'
},
actions: {
onClick() {}
}
}
export const hooks = createHooks()import { createApp } from 'vue'
import { createOvermind } from 'overmind'
import { withOvermind } from 'overmind-vue/vu3'
import { config } from './overmind'
import App from './App.vue'
const overmind = createOvermind(config)
createApp(withOvermind(overmind, App)).mount('#app')
...Plugin
Rendering
Pass state as props
Reactions
Connect
Computed
Using props
Last updated