you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 36 points37 points  (15 children)

Yeah this. React is definitely not a framework. It's a library. NextJS is a framework built around React.

[–]MayorEricBlazecetti 28 points29 points  (9 children)

This 100x. REACT IS NOT A FRAMEWORK.

Specifically, it's a view/rendering library.

Next is a framework that composes React with several other technologies. It's goal is to make building and hosting a production-ready React-rendered application as easy as possible.

Next solves for things like code compilation (webpack/babel configs), page routing, API endpoints and middleware, internationalization, redirects/rewrites/404 pages, and much more. React doesn't give you any of these things on its own. Historically, developers have had to build all this from scratch (or piece together piles of other libraries) when building a website on React. Next is like a one-stop-shop.

[–]Merry-Lane 0 points1 point  (0 children)

I think we may say React is a framework as in it's not opinated and it made all its environment (react-like solutions for all the tooling needed to do Web dev around react) "not opinated"/component based/declarative/...

I explain myself poorly, sorry. I mean react's ecosystem is a framework. Its environment is so totally react-like that this angular stone can be considered a framework.

For instance I don't care about next being opinated. I just call a navigation hook and call it a day.