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

Function TestComponent

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

Source from the content-addressed store, hash-verified

218 const events = [];
219
220 function TestComponent() {
221 useEffect(() => {
222 events.push('flushed effect');
223 }, []);
224 events.push('scheduled effect');
225 return <div>Test</div>;
226 }
227
228 const delay = ms => new Promise(resolve => setTimeout(resolve, ms));
229

Callers

nothing calls this directly

Calls 1

useEffectFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…