widgets/index.js

21 lines
528 B
JavaScript
Raw Normal View History

2024-05-15 22:38:07 +08:00
//import { Button, Main } from "./main.js";
//
//document.body.appendChild(Main({
// children: [Button({
// textContent: 'Hello world',
// onclick: event => console.log('Hello world')
// })]
//}));
2024-01-12 04:38:20 +08:00
2024-05-15 22:38:07 +08:00
import { div, pre } from './main.js'
//const demo = div.w(128).h(64) //.onclick.stop('click').children([
document.body.appendChild(div.w(128).h(64).children([
div.text('Hello world!')
]))
2024-01-12 04:38:20 +08:00
2024-05-15 20:56:42 +08:00
//fetch('./index.js').then(res => res.text()).then(text => {
// document.body.appendChild(pre.text(text))
//})