import {div, ul, li, a} from './dom';
const items = ['foo', 'bar', 'baz']
const container = div({ className: 'container'},
div({ className: 'ul-container', dataRef: 'hello' }, ul(
items.map(item => li(a({className: 'li-link', href: `${item}`}, item)))
))
)
document.body.appendChild(container)
-
Notifications
You must be signed in to change notification settings - Fork 0
ricklancee/imperative-dom
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A simple way to imperatively create HTMLElements
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published