H2dom
Create DOM nodes using h functions
Install / Use
/learn @jamen/H2domREADME
h2dom
Create DOM nodes using h functions
NOTICE This is not a patch function, it simply creates DOM nodes.
Example
var node = h('div', { class: 'foo' }, [
h('span', null, 'foo'),
' bar'
])
document.body.appendChild(node)
Install
npm i h2dom
Usage
This function follows the h2spec guidelines.
h(tag, data?, children?)
tag: the element name passed todocument.createElement(name)data(optional): an object containing the attributes to set on the elementchildren(optional): an array of DOM nodes or primitive values to be listed underelement.childNodes
Related Skills
pestel-analysis
Analyze political, economic, social, technological, environmental, and legal forces
next
A beautifully designed, floating Pomodoro timer that respects your workspace.
product-manager-skills
38PM skill for Claude Code, Codex, Cursor, and Windsurf: diagnose SaaS metrics, critique PRDs, plan roadmaps, run discovery, and coach PM career transitions.
devplan-mcp-server
3MCP server for generating development plans, project roadmaps, and task breakdowns for Claude Code. Turn project ideas into paint-by-numbers implementation plans.
