Hacker News new | ask | show | jobs
by satvikpendem 44 days ago
No, it's not, despite what other comments here say. Of course it's possible but you end up recreating React or another library along the way. JS is getting native signals sometime in the future but for now pure JS is not sufficient for a full, complex app.
3 comments

> you end up recreating React or another library along the way

That's always the trotted-out response, most often recited by people who've read someone else saying it but not had the experience to form an opinion for themselves.

You absolutely don't end up recreating a massive, bloated, slow framework that tries to be as generic as possible to try to be everything to everyone. What you end up creating is a relatively tiny, fast, piece of code that is specific to that site's needs. The difference in size, speed and simplicity tends to be absolutely enormous.

Wrong on both counts. I've worked in companies with vanilla JS only and made parts of those frameworks they ended up building. It is absolutely not "relatively tiny, fast, piece of code that is specific to that site's needs" and once we switched to React we actually saw improvements in many parts of the sites' loading speeds. Next you're gonna No True Scotsman me by telling me the company was just bad but I've seen enough examples at other companies to see that using React or a similar framework is simply the right move.
The joke is that those who react have no idea and those who don't have no idea either. I never use react so I'm going to have to go with: Those other companies are also just bad. (joking) If everyone can work with/without it should be fine? As long as you don't try to do both.
For a large ERP-like back-office where leadership didn't want to use an existing reactive framework, I definitely ended up recreating built on top of jQuery ( at the start of the project IE still needed to be supported ).

Once you start adding dynamic forms for managing multiple items of different kinds, dashboards, error states, i18n, etc, you either end up with a homegrown framework, or with a lot of spaghetti.

Hate to tell you this, bit 99% of apps built with React are rebuilding what has already come before. Namely, taking some information from a database and displaying it on a screen, and taking some input from a computer and putting it in a database.

Almost every web application being built today, framework or no framework, is a variation of a theme. We have no issue recreating those ad nauseum, but we draw the line at recreating a framework?

Who has no issue recreating those? Speak for yourself.
have you played with lit.dev ? It's part of the OpenJS Foundation (formerly jQuery and Node.js Foundations)