You don't need React: creating a minimal UI library in Vanilla JavaScript
- Programming
- Web Development
- Developer Tools
- Open Source
The post walks through a minimal UI library in vanilla JavaScript that mimics a React-style mental model. The pitch is simple: for many websites, you can get component-like structure and reactive updates without bringing in React or a larger build stack. That landed with people who are tired of React being the default answer for every page with a button. Several said the right baseline for content-heavy sites is still HTML, CSS, and light JavaScript, or newer hybrids like Astro with Preact islands when a few parts truly need client-side complexity.
If you run a mostly content or forms-heavy site, start with server-rendered HTML and add small islands of interactivity instead of defaulting to a full React stack. If you do need rich client-side workflows, evaluate frameworks on the problems they remove for your team, not on ideology or bundle-size slogans.
-
pedroth.github.io
- Discuss on HN