S
SolidJS2mo ago
siduck

Rendering a component at a specific target during runtime

This works so far, no issues with it right?
const createToast = () => {
let div = document.createElement("div");
div.id = "toasts";
document.body.appendChild(div);
render(() => <Btn txt="hi"/>, div);
};
const createToast = () => {
let div = document.createElement("div");
div.id = "toasts";
document.body.appendChild(div);
render(() => <Btn txt="hi"/>, div);
};
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?