Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Even so, web developers always had the option of sticking with an imperative approach to UI, like using element.innerHTML = '...', but overwhelmingly they preferred more declarative solutions like React. You could just as easily make the argument that the shortcomings of HTML had nothing to do with its "declarativeness", since that part was retained. I think a more likely explanation is that HTML couldn't be used to express the more complicated SPAs that people wanted to build, and regardless of what you think about those, JS-based solutions had to fill that need.


Yeah, HTML is declarative but the issue is that it’s such in an extremely simple way.

Loops, conditions, and variables/transclusions are table stakes, and without them pure HTML is just tedious data entry with extra tags.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: