esaQute/index.js

23 lines
327 B
JavaScript
Raw Normal View History

2023-01-12 23:48:50 +03:00
function BoldText({text})
{
return {
$:"b",
in: text
}
}
let e = é({
$:"div",
style:"width: 200px",
onclick:()=>{
alert("Clicked ")
},
in:[
"Hi !",
é(BoldText,{
text: "Bold Hi!"
})
]
});
e = e.render();
document.body.appendChild(e);