Earlier quoted context omitted.
I think the author is referring to immediate mode because of UI=f(state)
I do understand that's what they have in mind. But that's not what immediate mode means. Function application is not the only criteria. We are talking about rendering into a browser by twiddling DOM APIs. That's definitely retained mode rendering and repeatedly claiming it's immediate mode doesn't make it true
You don't need React: creating a minimal UI library in Vanilla JavaScript
71–80 of 122 posts
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#72Earlier quoted context omitted.
I kind of agree but also > what about X feature To which I argue unequivocally YAGNI 95% of apps people actually develop are really just CRUD and could easily get by without JavaScript on the front end at all. They certainly don't justify the layers of complicated state maintenance React and similar systems entail.
95% of the frontend apps can easily be made with AI. Doesn't matter in which framework.
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#73Actually browsers already come with a minimal UI library. It's called HTML + CSS + JS. There's actually no need to make any wrappers - you describe what you want in HTML and make it look good with CSS. You only need to make UI using JS only for complex components. Case study: I tried porting an old strategy game from pygame to web using codex. Codex decided that it doesn't need any library and raw-dogged HTML. It was…
Writing a CSS file with the time will start growing and at some point will be very hard to know what to keep and what to delete, I think this is the reason why tailwind became popular, because it keep only the used rules, now the downside is that now your html elements has ton of classes.
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#74Earlier quoted context omitted.
I kind of agree but also > what about X feature To which I argue unequivocally YAGNI 95% of apps people actually develop are really just CRUD and could easily get by without JavaScript on the front end at all. They certainly don't justify the layers of complicated state maintenance React and similar systems entail.
95% of the frontend apps can easily be made with AI. Doesn't matter in which framework.
- https://macharchitecture.com/
- https://www.sanity.io/studio (a possible example)
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#75I think React is way overused but every time you see a blog post with "replace it with this pet mini project instead" I groan because you know the reaction is going to be "what about X feature", and of course the mini framework doesn't do it. I've found the perfect balance to be Astro with Preact. You will inevitably have some piece of functionality that's complex (say, a contact form) and you can lean into Preact fo…
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#76Earlier quoted context omitted.
The problem is really folks trying to one-size-fits-all web projects. React basically exists to give a “good enough” GUI toolkit functionality in the browser. On the other hand, the web was built to publish content as in articles and information. Everything kind of sits somewhere on the continuum between static content and the interactive app experience. At the extreme it can be interactive “art” piece. It is importa…
I think main reason people choose React now is "nobody was fired for choosing React". (That used to be a saying about IBM as a vendor.) People can build their career around React. And it is better "job security" than pure HTML+JS: React apps need constant maintenance
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#77Earlier quoted context omitted.
But the api is trying to simulate immediate mode using DOM
That's called an "abomination". The advantage of immediate mode is not storing a DOM. If you write immediate-mode code but it stores a DOM anyway then it's the worst of both worlds.
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#78> immediate mode You keep using that word. I do not think it means what you think it means. React most definitely falls under what would be called a "retained mode" of some sort. And the UI library described here is also.
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#79I think React is way overused but every time you see a blog post with "replace it with this pet mini project instead" I groan because you know the reaction is going to be "what about X feature", and of course the mini framework doesn't do it. I've found the perfect balance to be Astro with Preact. You will inevitably have some piece of functionality that's complex (say, a contact form) and you can lean into Preact fo…
And this is why it pays to just learn React. It's never been easier. A contact form is not that complex. React won. The LLM can author it pretty well at this point, probably better (and cheaper) than at least 50% of FE devs. Treating a "contact form" as a potential fork in the road in 2026 is just sad.
Re: You don't need React: creating a minimal UI library in Vanilla JavaScript
#80I think React is way overused but every time you see a blog post with "replace it with this pet mini project instead" I groan because you know the reaction is going to be "what about X feature", and of course the mini framework doesn't do it. I've found the perfect balance to be Astro with Preact. You will inevitably have some piece of functionality that's complex (say, a contact form) and you can lean into Preact fo…