Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
8
export
function
useDOMHandle(ref, node) {
9
useImperativeHandle(ref, () => node, [node]);
10
}
Callers
1
ContentShimWithRef
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected