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

Function App

hooks/test/browser/hooks.options.test.jsx:50–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 });
49
50 function App() {
51 const [count, setCount] = useState(0);
52 increment = () => setCount(prevCount => prevCount + 1);
53 return <div>{count}</div>;
54 }
55
56 it('should call old options on mount', () => {
57 render(<App />, scratch);

Callers

nothing calls this directly

Calls 10

useStateFunction · 0.90
useReducerFunction · 0.90
useEffectFunction · 0.90
useLayoutEffectFunction · 0.90
useRefFunction · 0.90
useImperativeHandleFunction · 0.90
useMemoFunction · 0.90
useCallbackFunction · 0.90
useContextFunction · 0.90
useErrorBoundaryFunction · 0.90

Tested by

no test coverage detected