Short answer
The React docs call React a library, not a framework. The homepage says it is the library for web and native user interfaces, and that it lets you put components together without prescribing routing or data fetching. For a whole app, the same page recommends a full-stack React framework such as Next.js or React Router. React Native's site uses library language too, and it recommends a framework such as Expo when you want routing and native modules included.
Last verified against the sources listed below.
Key takeaways
- react.dev's homepage title line is 'The library for web and native user interfaces.'
- The docs say React does not prescribe routing or data fetching. A framework such as Next.js does that job.
- You can add React to an existing HTML page and render components there. A full app is optional.
- The same homepage also calls React an architecture and a community, after it calls it a library.
- React Native says Meta released it in 2015, and it recommends Expo as a framework for a new app.
Is React a framework or a library? The React homepage answers with the library label. Its line is “The library for web and native user interfaces.” The GitHub repository uses that same line.
A framework, on that page, is the extra layer you add when you want routing and data fetching decided for you. React itself stops at components. The rest of this page is what the docs leave out, and what React Native says about the same split.
What do the docs call React?
They call it a library. The full-stack section says React lets you put components together, but it does not prescribe how to do routing and data fetching.
The recommendation in the next sentence is a full-stack React framework such as Next.js or React Router. Next.js describes itself as the React framework, and as the full-stack React framework for the web. The React docs are naming that kind of project, not reclassifying React.
The homepage also says React is an architecture, and later that it is more than a library, an architecture, or an ecosystem because it is a community. Those lines widen the description. They do not replace the library label at the top of the page.
The same page lists talks, including Introducing React Native from 2015 and Introducing Server Components. Those are history links. They do not change the library label.
Components, on that page, are JavaScript functions. To show content only sometimes, the page says to use an if statement. To show a list, it says to try array map().
It calls learning React learning programming. It also says using React feels the same whether you work alone or with thousands of other developers, because you combine components written by different people, teams, and organizations.
React Native’s homepage uses a different product name and the same split. It says you learn once and write anywhere, that the UI is written in JavaScript and rendered with native code, and that the primitives use the same platform APIs other apps use.
It lists View, Text, and Image as the core set. A framework is again the optional layer: Expo, for routing and native modules, rather than Next.js. The page says Meta released React Native in 2015 and still maintains it, with contributions from other companies. None of that text calls React Native a framework.
What does a framework add?
It adds the choices React refuses to make. Routing and data fetching are the two the homepage names.
| Piece | What the React homepage says | What it points to |
|---|---|---|
| UI components | The library’s job | React itself |
| Routing and data fetching | Not prescribed | Next.js or React Router |
| Existing HTML page | You can add React to it | The page you already have |
| Server data | Frameworks can fetch in async components | A full-stack React framework |
| Native screens | React Native does not prescribe routing | A framework such as Expo |
The same page shows a server-rendered pattern: an async component reads a record and passes it into a layout, with Suspense around the part that can wait. Frameworks that implement the architecture, the page says, let you fetch in components that run on the server or during the build. That data loading is framework behavior wrapped around the library.
You can skip the framework. The homepage says you do not have to build the whole page in React. Add React to existing HTML and render components where you want them. That path keeps React as a library inside a page you already have.
The homepage says two million developers from all over the world visit the docs every month. That figure is about the documentation audience. It is not a count of production apps, and it is not a reason to rename the library.
Is React Native a separate library?
The React Native homepage calls the project a way to create native apps for Android, iOS, and more using React. It says React Native brings React to native development, and the code sample is a HomeScreen function that returns View and Text.
Those primitives map to the platform’s native UI. The site says React Native does not prescribe routing or access to platform APIs. For a new app, it recommends a framework like Expo.
The Expo notes on that page include file-based routing and a set of modules, “over 50 modules,” for native capabilities. Meta released React Native in 2015, the page says, and still maintains it.
Where does the component model stop?
A component is a function that returns UI. The learn material treats that as the unit you compose. It does not, on the pages opened here, hand you a router.
An SVG can become one of those components. The SVG to JSX tool turns an SVG into a React component the page can render. That output is library code. It is not a framework, and it does not add routes.
The homepage also says two million developers visit the React docs every month. That is a docs-traffic figure, not a count of apps. How this library sits inside a programming paradigm is covered in what a programming paradigm is.
The language the components are written in is JavaScript. That language is the subject of what JavaScript is.
Frequently asked questions
What is React, framework or library?
The docs use the word library. The learn section's full-stack heading repeats it: React lets you assemble components and does not choose your router or your data layer. Next.js, on its own site, calls itself the React framework and the full-stack React framework for the web. That pairing is the practical split. React is the UI library. Next.js is one framework the React docs name when the app needs the pieces React leaves out. React Router is the other name on that same React sentence.
What is React JS, framework or library?
React JS is the same project. The homepage does not switch the label when people add JS to the name. The GitHub repository description matches the homepage line: the library for web and native user interfaces. Nothing on the pages opened for this guide prints a version number in the marketing headline, so this article does not invent one. If a tutorial calls React a framework, it is using a looser word than the docs use for the library itself.
Does React include a router?
Not as a required part of the library. The homepage says React does not prescribe routing, and it points at Next.js or React Router for a full-stack app. React Native's site says it does not prescribe routing or how you reach platform APIs, and it recommends a framework like Expo. The Expo notes on that page include file-based routing for stack, modal, drawer, and tab screens. Those routes belong to Expo, not to a router inside React itself.
Can one page use React without a framework?
Yes. The homepage says you do not have to build the whole page in React. You add React to an existing HTML page and render interactive components on it. That is the library shape: the page stays in charge, and React renders the pieces you hand it. A framework path is the other choice on the same page, with server components that can read data during the build or on the server. Both are documented. Neither cancels the library label.
Sources
- React · React, 2026
- Quick Start · React, 2026
- React Native · Meta, 2026
- react/react · GitHub, 2026
- Next.js by Vercel · Vercel, 2026