MCPcopy Create free account
hub / github.com/WebReflection/neverland / demo

Function demo

test/test.js:12–22  ·  view source on GitHub ↗
(name, Component)

Source from the content-addressed store, hash-verified

10 } = neverland;
11
12 const demo = (name, Component) => {
13 const div = document.body.appendChild(
14 document.createElement('div')
15 );
16 div.appendChild(
17 document.createElement('h1')
18 ).textContent = name;
19 render(div.appendChild(
20 document.createElement('div')
21 ), Component);
22 };
23
24 // The most basic Hook: useState
25 const Counter = $(() => {

Callers 1

test.jsFile · 0.85

Calls 1

renderFunction · 0.50

Tested by

no test coverage detected