News for hackers. Stuff that matters.
Re:Web Components Eliminate JavaScript Framework Lock-In by vitaflo on Monday November 27, 2023 @01:25PM (#38436058)
100% agree. Like you I’ve been building sites since the mid 90s and always was pulling my hair out at all the convoluted ways we would attempt to handle HTML in these JS frameworks. As someone who knows HTML and CSS and vanilla JS, as soon as I saw React all I could think of when I saw JSX was “finally!”.

Yeah it’s another framework with its own quirks but it lets me think about the UI in the same way I’ve thought about it for 25 years. For someone like me that’s a godsend.

Re:Web Components Eliminate JavaScript Framework Lock-In by xtracto on Monday November 27, 2023 @04:13PM (#38438385)
I remember using PHP and CodeIgniter in the mid-2000s. IIRC PHP had that template-interpolation thing solved since the first day: You populated your Views with PHP code.
Re:Web Components Eliminate JavaScript Framework Lock-In by gitaarik on Tuesday November 28, 2023 @04:40AM (#38444084)
Then you would love Lit [0]. It is like JSX, but then using more native html template technologies.

[0]: https://lit.dev/