MCPcopy
hub / github.com/lit/lit / render

Function render

packages/lit-html/src/test/polyfill-support/lit-html_html-test.ts:427–432  ·  view source on GitHub ↗
(title: string)

Source from the content-addressed store, hash-verified

425 const el = document.createElement('slot-host');
426 wrap(document.body).appendChild(el);
427 const render = (title: string) => {
428 renderShadowRoot(
429 html`<slot name="before"> </slot>${title}<slot name="after"></slot>`,
430 el
431 );
432 };
433 render('foo');
434 assert.equal(shadowRoot(el)?.textContent, ' foo');
435 render('bar');

Callers 15

static_test.tsFile · 0.90
goFunction · 0.90
assertRenderFunction · 0.90
lit-html_test.tsFile · 0.90
goFunction · 0.90
repeat_test.tsFile · 0.90
renderClassMapFunction · 0.90
renderClassMapStaticFunction · 0.90
class-map_test.tsFile · 0.90
goFunction · 0.90

Calls 5

renderShadowRootFunction · 0.85
createRefFunction · 0.85
repeatFunction · 0.85
htmlFunction · 0.50
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…