@coaction/svelte
v3.0.0
Published
A Coaction integration tool for Svelte
Readme
@coaction/svelte
A Coaction integration tool for Svelte.
Installation
Install it with pnpm:
pnpm add coaction @coaction/svelteUsage
import { create } from '@coaction/svelte';
const store = create((set) => ({
count: 0,
increment() {
set((draft) => {
draft.count += 1;
});
}
}));
const count = store((state) => state.count);
count.subscribe((value) => {
console.log(value);
});Documentation
You can find the documentation here.
