import { createEffect } from "npm:solid-js";
import { createMutable } from "npm:solid-js/store";
const state = createMutable({ count: 0 });
createEffect(() => {
console.log(state.count);
});
setInterval(() => state.count++, 1000);
import { createEffect } from "npm:solid-js";
import { createMutable } from "npm:solid-js/store";
const state = createMutable({ count: 0 });
createEffect(() => {
console.log(state.count);
});
setInterval(() => state.count++, 1000);