News for hackers. Stuff that matters.
Re:Web Components Eliminate JavaScript Framework Lock-In by yohannparis on Monday November 27, 2023 @02:04PM (#38436675)
You can use `<template>` for that purpose and keep your separation of concerns okay.
Re:Web Components Eliminate JavaScript Framework Lock-In by MrDresden on Monday November 27, 2023 @02:09PM (#38436747)
As a non web dev I had to look this up and yeah, this looks like a very sane and clean way to separate concerns and get proper handling from IDEs:

https://developer.mozilla.org/en-US/docs/Web/API/Web_compone...

Re:Web Components Eliminate JavaScript Framework Lock-In by gitaarik on Tuesday November 28, 2023 @09:48AM (#38446297)
Indeed, the Web Components APIs don't demand that you put the HTML and JS together. You can use it and structure it to your own likes.