Many of the competitors springing up define themselves in terms of React, either as an improvement or a foil. But if you're just trying to get things done, it's hard to go wrong with it - and in a practical sense, not a "nobody got fired" sense.
Many of the competitors springing up define themselves in terms of React, either as an improvement or a foil. But if you're just trying to get things done, it's hard to go wrong with it - and in a practical sense, not a "nobody got fired" sense.
(Of course, even React itself has gotten fairly complex with Hooks, Suspense and the dreaded Server Components.)
What are some specific sites you've seen that adopted react and ended up worse as a result of it?
> doesn't have a "relatively small surface" any more, because even the React team doesn't recommend that you use "just" React
Isn't this evidence of it having a relatively small surface area that frameworks and other tools can build on top of, much like html, css etc?
No? You can build on top of a large surface area, too? Of course, the funny thing is, even if you are right and React has a "relatively small surface area" (relative being the operative word,) what good is it when the creators of the framework say that you shouldn't use that surface area directly?
> What are some specific sites you've seen that adopted react and ended up worse as a result of it?
I don't think you're arguing in very good faith, but one recent example is the Indian grocery delivery service bigbasket. They switched from mostly-server-rendered to Next, and the new version was downright horrid for a while, and is only barely usable now. The most cruel part of the joke is that the next.js version is currently only shown to logged in users, so you can blissfully shop for a while, get to the cart and then be hit with the awful new UI.
So, it going to be difficult to choose pure React with that kind of statement.
At some point you will have some state that transcends the UI and trying to shove it into React UI component does not make sense.
React is just a better approach to building all-encompassing SPAs.
(We have no external webapps because my company, funny enough, builds a JavaScript framework!)
Svelte was first released in 2016 and has become bigger than its original creator, Rich Harris. It has quite a thriving ecosystem and a big community. The tooling around it is more mature than React's has ever been.
> surface is so small
I actually find the opposite to be true. React still has a relatively small API surface area. One-way data flow makes it easier to understand. However, a smaller surface means arguably less expressivity, so I think Svelte's bigger learning curve is worth it. You can learn about 90% of React in a weekend and be productive. You can learn about 20% of Svelte in a weekend and also be somewhat productive, but you need to learn about 60-70% more to use Svelte as it's intended, rather than as a React alternative.
You only need to learn how to put {varName} in svelte.
Like NextAuth.js -> Auth.js React Query -> Tanstack Query
So at the very least, I think we are probably headed towards a plurality where it is practical to use Vue, React, Svelte or Solid though I do hope Svelte “wins” in the end.
I have to say, I still don’t think it’s to the point where it can be foisted on a team of mediocre developers in some kind of enterprise setting. Some of the libraries that exist for SvelteKit that I consider super critical are very small and maintained by one or two people.
I recently took on some freelance work for the first time in like 6 years, just to work on another large SK codebase and saw a lot of the same problems I encountered approached differently. I think there’s some key things that need to make it into core still.
.. is the “Nobody Got Fired For Buying (IBM|Microsoft|Cisco)” for the 2020s
Long-time Java dev by background, used more frameworks than I could possibly list. I won't touch React with a ten foot pole.
SvelteKit is the first web framework I ever used that I enjoy working with.
I wouldn't be surprised to see some movement toward simpler but equally robust frameworks like Vue or Svelte.
I contract for a few companies and everyone seems to have a different take on the industry standard.
React may well be biggest, but I don't think it's possible dominance is the reason there are fewer framework posts on HN recently.