MCPcopy
hub / github.com/lit/lit / createRef

Function createRef

packages/lit-html/src/directives/ref.ts:12–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10 * Creates a new Ref object, which is container for a reference to an element.
11 */
12export const createRef = <T = Element>() => new Ref<T>();
13
14/**
15 * An object that holds a ref value.

Callers 9

basic.tsFile · 0.85
renderFunction · 0.85
lit-html_test.tsFile · 0.85
ref_test.tsFile · 0.85
renderFunction · 0.85
RefChildClass · 0.85
RefHostClass · 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…