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

Function setValue

test/browser/render.test.jsx:833–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

831 let check = p => render(<input type="checkbox" checked={p} />, scratch),
832 value = () => scratch.lastChild.checked,
833 setValue = p => (scratch.lastChild.checked = p);
834 check(true);
835 expect(value()).to.equal(true);
836 check(false);

Callers 8

suspense.test.jsxFile · 0.85
render.test.jsxFile · 0.85
EditableFunction · 0.85
TestComponentFunction · 0.85
ContenteditableFunction · 0.85
AppFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…