▲ | troupo 9 days ago | ||||||||||||||||
Custom Elements don't play well with HTML either. And "just dropping <my-dropdown>" is not much different from "just dropping <div id=app> and running some framework code on it" All the reasons are here: https://dev.to/stuffbreaker/web-components-and-ssr-2024-edit... | |||||||||||||||||
▲ | troupo 9 days ago | parent [-] | ||||||||||||||||
It's strange to see people downvoting this when custom elements still can't be properly rendered on the server. All the attempts are very framework specific, e.g. lit's list of caveats https://lit.dev/docs/ssr/overview/ (and shoelace referenced above depends on lit). There's nothing very special in sending a html tag and then attaching functionality to it with javascript when it's loaded in the browser. | |||||||||||||||||
|