What is React?
React builds interfaces from small reusable pieces that redraw themselves when data changes. The three ideas that explain it, what it does not do, and why it is the default for so many apps.

Key takeaways
- React is a JavaScript library, created at Facebook in 2013, for building interfaces out of components.
- Components take props (inputs) and hold state (memory); when state changes, React updates only what changed on screen.
- React handles the view layer only; routing, styling, data fetching and the backend come from other tools.
Facebook created React in 2013 as an open-source JavaScript library for building user interfaces, and it has since become one of the most widely used ways to make web apps. Its central idea: build the screen from small, reusable components (a button, a product card, a chat message) and describe what each should look like for the current data. When the data changes, React updates the screen for you.
An everyday example: building blocks
With a box of building blocks, you do not carve a house from one piece of wood. You make a window block once and use it twelve times. React works the same way. A `ProductCard` component is written once and rendered for every product in the shop, each with its own name, price and photo. Fix a bug in the card and it is fixed everywhere. Big apps are just components made of smaller components: a `CheckoutPage` contains a `CartList`, which contains `CartRow`s, which contain `QuantityPicker`s.
Three ideas that explain React
- Components are functions that return what to show. They are written in JSX, which looks like HTML inside JavaScript: `<ProductCard name="Mug" price={18} />`.
- Props are a component's inputs, passed from its parent. The card above receives `name` and `price`. A component should not change its own props.
- State is a component's memory: whether a menu is open, what is typed in a search box, how many items are in the cart. Change the state and React redraws the parts of the screen that depend on it.
That last point is the big shift from older web code. You do not write "find the cart badge and set its text to 3." You write "the badge shows `cartItems.length`," and React keeps it true. Fewer forgotten updates means fewer screens showing the wrong number.
What React does not do
React is the view layer only. A real app adds a router for multiple pages, a styling approach, a way to fetch data, a build tool and a backend. That is why you hear React mentioned alongside other names: Vite (build tool), Next.js (a framework built on React that adds routing and server rendering), Tailwind (styling) and React Native (the same ideas for phones, see what is React Native).
Why it matters when building with Startbase
Startbase websites start from Vite 8, React 19 and TypeScript, with Tailwind CSS 4, React Router 7, Motion for animation and Lucide icons. There is no bundled UI kit: the agent builds the components your app needs (web template docs). Because these are standard React projects, the code you download or push to GitHub runs anywhere a normal React app runs. If you open the Code tab, you can mention a component file in chat to target a change precisely.
Make the product card a reusable component used on the home page, the search results and the favorites page. It shows the photo, name, price and a heart button. Out-of-stock products show a grey "Sold out" label instead of the add button. Keep every card in sync when a product is favorited on any page.
Related: responsive design explained and what is TypeScript.
Common confusions
- React is not a full framework. It is a library for interfaces. Frameworks like Next.js build on it.
- React is not the same as React Native. They share components, props and state, but React Native draws native phone views instead of web pages.
- React does not make a site slow or fast on its own. Large images, too much JavaScript and unoptimized data fetching matter far more.
Frequently asked questions
Is React a programming language?
No. It is a JavaScript library. React code is JavaScript or TypeScript, with JSX syntax for describing the interface.
Is React good for SEO?
It can be. Single-page React apps render in the browser, which search engines handle, but adding clear titles, meta descriptions and a sitemap matters more than the framework choice.

