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.
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