MCPcopy
hub / github.com/preactjs/preact / increment

Function increment

test-utils/test/shared/act.test.jsx:160–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

158 function CounterButton() {
159 const [count, setCount] = useState(0);
160 const increment = () => setCount(count => count + 1);
161 return <button onClick={increment}>{count}</button>;
162 }
163

Callers 2

rerender.test.jsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…