logoalt Hacker News

cyanregimenttoday at 11:55 AM0 repliesview on HN

You don’t need React until you do.

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