esaQute/index.js

24 lines
464 B
JavaScript

function Bootstrap()
{
let [get, set] = é.useState(1);
setTimeout(()=>{
set(2);
}, 5000);
return {
$:"link",
rel: "stylesheet",
href: "https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.2.3/css/bootstrap.min.css",
v: get
}
}
let e = é({
$:"div",
style:"width: 200px",
onclick:()=>{
alert("Clicked ")
},
in: é(Bootstrap)
});
let t = render(e);
document.body.appendChild(t);