HTML Web Components
blog.jim-nielsen.com
HTML Web Components
1–10 of 247 posts
Re: HTML Web Components
#2https://meyerweb.com/eric/thoughts/2023/11/01/blinded-by-the... - "So there you have it: a few thousand words on my journey through coming to understand and work with these fully-Light-DOM web components, otherwise known as custom elements. Now all they need is a catchy name, so we can draw more people to the Light Side of the Web."
https://adactio.com/journal/20618 then suggests the catchy name.
Re: HTML Web Components
#3Render your react components on the server and send them over the wire as plain html. no client side javascript required — full stop.
Re: HTML Web Components
#4Re: HTML Web Components
#5Not a full stop; SSR means they could render before client-side JS.
The example is a bit too simple to make the author's point IMO. A web component that handles changes to state would be a better comparison, and make for a better argument.
Re: HTML Web Components
#6> React components cannot do this — full stop. Render your react components on the server and send them over the wire as plain html. no client side javascript required — full stop.
Re: HTML Web Components
#7> React components cannot do this — full stop. Render your react components on the server and send them over the wire as plain html. no client side javascript required — full stop.
So just run javascript before your components render so you don't have to run javascript before your components render.
Re: HTML Web Components
#8I want to believe... but reality is stacked against HTML web components. I'm just going to stick to HTML and leave the HTML with dashes to others.
Re: HTML Web Components
#9Earlier quoted context omitted.
So just run javascript before your components render so you don't have to run javascript before your components render.
If you find a way to deliver a website without running any code, let me know!
Moving the render off the client is nice, but removing the prerender altogether is something much cooler.
Re: HTML Web Components
#10HTML web component is NOT a function.
You don't just compare those things, they work and compose differently.
I would rather combine them: A html web component renderer for React.