esaQute/index.js

24 lines
464 B
JavaScript
Raw Permalink Normal View History

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