Hacker News new | ask | show | jobs
by LAC-Tech 1612 days ago
Alternatively, why should I not be considering React? Is everybody using something else these days? Looking to build a front-end to interact with some REST APIs.

React is a decent choice for that. Go ahead and learn it.

If you want to do frontend in 99% of shops - React by itself is not enough. People will tell you it's "just a library" - and that's technically true.

But in the wild you'll be dealing with something I call "Enterprise React". A bloated monstrosity of a web project created with create-react-app (Which is a nightmare of needless complexity under a thin and very slow veneer of convenience). Your react and general coding skills will be secondary to your skills as a sort of npm sysadmin, because best practices are to download a library for every whim anyone ever has.

That is unless you never update it your packages while you are there. Which honestly - I've recently learned - is the smarter career play.

So sure, learn react, make your SPA. But be careful of getting too deep into it, because that way lies madness.

3 comments

> Enterprise React

This is my experience exactly with React. I hate it. I advocate for html over the wire (LiveView, Hotwire, htmx, etc) or even just plain html templates (they are not evil!) to whoever will listen. I realize SPA frameworks have a place, but those places occur much less frequently than people suppose (or want).

I'm saving your comment to show people next time I encounter another team mindlessly reaching for React and friends.

> create-react-app (Which is a nightmare of needless complexity under a thin and very slow veneer of convenience).

No it’s not. create-react-app barely does anything except bootstrapping a project with sane defaults. It could improve on devDependencies but they don’t depend on a lot more that what you’d need to setup yourself anyway.

Also as a beginner, React is insanely confusing...