el icon indicating copy to clipboard operation
el copied to clipboard

SSR

Open AustinGil opened this issue 2 years ago • 2 comments

This looks awesome. Is there already (or planned) a story around SSR support?

AustinGil avatar Oct 20 '22 19:10 AustinGil

how would that look like? having webcomponents be removed to turn into the inner html as string? but somehow still be there to get hydrated? I think you could make a method that executes the render methods in node.js to produce html without webComponent tags. not sure how this would be done when it is nested.

I think a lib like this is only useful in the client. I think it is a great match with technologies such as ´htmx´. What are your thoughts?

TobiasNickel avatar Oct 06 '23 12:10 TobiasNickel

Yeah, that's a tricky one. I think most SSR solutions for other frameworks result in a meta framework like Next, Nuxt, etc. That may not be the ideal direction. Might be worth looking at https://enhance.dev/

AustinGil avatar Oct 06 '23 14:10 AustinGil