MCPcopy Create free account
hub / github.com/ampproject/amphtml / useDOMHandle

Function useDOMHandle

src/preact/component/dom-handle.js:8–10  ·  view source on GitHub ↗
(ref, node)

Source from the content-addressed store, hash-verified

6 * @template T
7 */
8export function useDOMHandle(ref, node) {
9 useImperativeHandle(ref, () => node, [node]);
10}

Callers 1

ContentShimWithRefFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected