You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
548 B
JavaScript
16 lines
548 B
JavaScript
import { init } from '../../build/package/init.js'
|
|
import { attributesModule } from '../../build/package/modules/attributes.js'
|
|
import { h } from '../../build/package/h.js'
|
|
|
|
var patch = init([attributesModule])
|
|
|
|
window.addEventListener('DOMContentLoaded', () => {
|
|
var container = document.getElementById('container')
|
|
var vnode = h('div', [
|
|
h('svg', { attrs: { width: 100, height: 100 } }, [
|
|
h('circle', { attrs: { cx: 50, cy: 50, r: 40, stroke: 'green', 'stroke-width': 4, fill: 'yellow' } })
|
|
])
|
|
])
|
|
patch(container, vnode)
|
|
})
|