MCPcopy Create free account
hub / github.com/developit/htm / x

Function x

test/statics-caching.test.mjs:21–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19describe('htm', () => {
20 test('should cache static subtrees', () => {
21 const x = () => html`<div>a</div>`;
22 const a = x();
23 const b = x();
24 expect(a).toEqual({ tag: 'div', props: null, children: ['a'] });

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected