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

Function ref

test/browser/refs.test.jsx:464–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

462 it('should correctly call child refs for un-keyed children on re-render', () => {
463 let el = null;
464 let ref = e => {
465 el = e;
466 };
467
468 class App extends Component {
469 render({ headerVisible }) {

Callers 5

refs.test.jsxFile · 0.70
shouldUpdateFunction · 0.50
applyRefFunction · 0.50
applyRefFunction · 0.50
useImperativeHandleFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected