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

Function HookApp

debug/test/browser/debug.options.test.jsx:92–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90
91 it('should call old hook options for hook components', () => {
92 function HookApp() {
93 const [count, realSetCount] = useState(0);
94 setCount = realSetCount;
95 return <div>{count}</div>;
96 }
97
98 render(<HookApp />, scratch);
99

Callers

nothing calls this directly

Calls 1

useStateFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…