News for hackers. Stuff that matters.
Re:Show HN: Nue – Apps lighter than a React button by tossandthrow on Tuesday April 01, 2025 @03:19PM (#43550415)
Neither HTML, nor CSS are naturally untyped.

Actually, React is not typed enough.

Looking at the mozilla docs: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sp...

You can see that eg. <span /> is not allowed to hold all types of elelemts.

How awsome weould it be, if th type system actually captures this.

Re:Show HN: Nue – Apps lighter than a React button by zelphirkalt on Wednesday April 02, 2025 @02:20AM (#43554107)
I guess many web developers would climb on a roof and throw stones, because then they really needed to learn HTML and using its elements semantically. And probably many of their web components would no longer type check either, forcing them to reimplement or use simpler elements.
Re:Show HN: Nue – Apps lighter than a React button by tossandthrow on Wednesday April 02, 2025 @03:33AM (#43554440)
There was a time where front-end devs would have sat down and cried had they had to make closing tags.
Re:Show HN: Nue – Apps lighter than a React button by joquarky on Wednesday April 02, 2025 @03:21PM (#43560474)
Ever heard of XHTML?

There's a reason it's dead.

Re:Show HN: Nue – Apps lighter than a React button by tipiirai on Wednesday April 02, 2025 @03:48AM (#43554499)
This is a great idea!