News for hackers. Stuff that matters.
Re:Web Components Eliminate JavaScript Framework Lock-In by throwaway_1987 on Monday November 27, 2023 @02:30PM (#38437004)
>But you know, if you are trying to put HTML templates in separate files, you have to now send extra HTTP requests.

Most projects that I have been involved with have some kind of build system that does all sort of magic. It should be possible to include the template in the JS file during the build process

Re:Web Components Eliminate JavaScript Framework Lock-In by nicoburns on Monday November 27, 2023 @04:06PM (#38438275)
Yep, and that's what was being done before React existed. JSX took over because people (including me) prefer to have the full power of JavaScript for their templates rather than a half-based templating language.