MCPcopy Create free account
hub / github.com/TanStack/devtools / increment

Function increment

examples/preact/custom-devtools/src/App.tsx:10–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8 const [count, setCount] = useState(counterInstance.getCount())
9
10 const increment = () => {
11 counterInstance.increment()
12 setCount(counterInstance.getCount())
13 }
14
15 const decrement = () => {
16 counterInstance.decrement()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected