Tiny DOM builder utility inspired by HyperScript
MIT License
true
or false
) is rendered as text.createElement
, -5b Fragment
)Published by aduth over 3 years ago
createElement
tag and children argument types.Published by aduth over 3 years ago
Published by aduth over 3 years ago
createElement
function is now a named argument, aliased as h
.Fragment
export.Published by aduth over 7 years ago
🚀 New Features
Example:
function Heading( attributes ) {
return h( 'h' + attributes.level, attributes.children );
}
var element = h( 'div',
h( Heading, { level: 2 }, 'Example' ),
'Content'
);
Published by aduth over 7 years ago
Published by aduth over 7 years ago