Replies: 2 comments
-
Okay, editing the Hello World JSFiddle works as expected: const { el } = redom;
const hello = el("h1", "Hello world! ", el('h2', 'sup'));
console.log(hello.outerHTML); So I'm assuming that the cloudflare worker can more or less do the same. |
Beta Was this translation helpful? Give feedback.
0 replies
-
If it has DOM support, should work. Otherwise just add some fake DOM. RE:DOM creates just ordinary DOM elements, no black magic 😎 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Considering something simple for generating simple websites via cloudflare workers and their caching, rather than the behemoth of react.js complexity.
My concern with redom is about the mounting. A cloudflare worker supports the DOM API (so doesn't need
nodom
), but does not have awindow.document.body
to mount to. And there is no details inside the redom documentation on getting the.outerHTML
of an element without mounting first.Beta Was this translation helpful? Give feedback.
All reactions