solid
import {
useStore
} from "exome/solid";
function useStore
Subscribes to store instance update events and trigger updates to component accordingly.
function useStore<T extends Exome>(store: T): Readonly<T>;
example.tsx
import { useStore } from "exome/solid"
import { counterStore } from "./counter.store.ts"
function App() {
const count = useStore(counterStore, s => s.count)
return (
<button onClick={counterStore.increment}>{count}</button>
);
}