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

Function div

test/_util/dom.js:19–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 * @param {Contents} contents The contents of the div, as a string
18 */
19export const div = contents => `<div>${serialize(contents)}</div>`;
20
21/**
22 * A helper to generate innerHTML validation strings containing p

Callers 10

Children.test.jsxFile · 0.90
fragments.test.jsxFile · 0.90
keys.test.jsxFile · 0.90
hydrate.test.jsxFile · 0.90
constructorMethod · 0.90
getListHtmlFunction · 0.90
focus.test.jsxFile · 0.90

Calls 1

serializeFunction · 0.70

Tested by 2

constructorMethod · 0.72
getListHtmlFunction · 0.72