by cyanregiment · 3mo ago · 0 comments
And that’s fine. It’s easy to replatform later with LLMs.
With vanilla you typically do class based components for organization (which can be quite clean in type=“module” with import/export) and you end up writing a complex View type class that does all the DOM manipulation.
You gotta hide the framework somewhere or you’ll repeat yourself a lot
Bonus points at scale you invent a templating solution. Maybe you use JSX
FYI this exists https://github.com/developit/htm which couples well with preact browser only (no npm/node compilation)
I think this is an underrated perspective in these discussions.