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