import create from "stalo"; import { compose } from "stalo/lib/utils"; import devtools, { meta } from "stalo/lib/devtools"; import { Panel } from "@stalo/devtools-ui"; import { Dock } from "react-dock"; const initStore = 0; const [useCount, _set] = create(initStore); const setCount = compose(_set, devtools(initStore, "Demo")); function increase(n: number) { setCount((c) => c + n, meta("increase", `Increase the count by ${n}`)); } // Here we create 2 count buttons to increase the store value. // The devtools will catch the changes and display them in the panel. export default function Devtools() { return (