HACKER Q&A
📣 jsattler

Why is React + Next.js so popular?


I'm about to start a side project that requires a frontend. First things first, I did some research on which framework to use. The obvious ones are React, Angular and Vue. After doing some research using Google (Blogs, Trends, NPM Stats etc.) and my favorite AI companion, I developed a sympathy towards Vue. I'm not exactly sure why. While researching I installed a browser extension to view the technologies used on a website. Whenever I visited a website that I liked (anthropic, openai, linear, notion), I checked what they were using. And this is what brings me to this question: most use React and Next.js. For a side project it's probably not important whether I use Vue or React and I should go with whatever I feel comfortable with but I was wondering why so many (popular) companies choose React + Next. Is it mostly about the ecosystem and community or is there more to it that I'm missing that makes React the obvious choice?


  👤 huncyrus Accepted Answer ✓
In short: inflated tech stacks, "quick and dirty" solutions, and too many inexperienced decision maker on the market

Longer: React became standard because people with actual no frontend knowledge (and taste) wanted to have building blocks, doesn't matter how bad, ugly and slow it is.

Next.js is hyped, because it does many things quickly (and dirty), a low learning curve. It does what PHP did 10+ years ago, and since so many new devs are in the market, for them, this is a new thing (you know, every joke is new for a new born...).

Next.js is pretty much just used as a baseline to load shadcn blocks/components, have a routing that does not require a backend, then push everything to be static (No, I won't mention that, if you can write decent vanilla JS code, how much faster, safer, efficient code you can write instead of that monstrocity).

How many bad startup companies are on the market (3-8-year-old companies that still state it is a startups and still looking for funding, without an actual user base) they tend to have "opinionated" leaders who basically have always some friend who recommend things that is pretty much just hype-train decision without actual experience or understanding the consequences.

Many companies burn hundreds if not thousands of dollars on infrastructure to fire up Next.js. And if you check all the features that are stated for it and compare it with 5-10 years old PHP solutions, you will realize, you can run the same product on a monthly 5 dollar vps too... (unpopular truth)


👤 c0brac0bra
Not sure how exactly React became so standard, but I'd assume it was a combination of the backing of Facebook and the frustration with performance and developer UX of Angular, which was most popular at that time.

In our case, we had started a large project with Vue because most of our small team was familiar with it, but our tech lead decided to pivot to React because we had so much trouble hiring for Vue development in our city.


👤 gr4vityWall
IIRC, Next.js became popular because it made SSR fairly easy, and Vite wasn't as much of a standard as it is today. React at this point is the standard for frontends, if you're not using templates.