# React

> A JavaScript library. You build screens with it out of small parts.

**Field:** Software Development  
**Category:** Web Development  
**Also known as:** React.js, ReactJS

## Think of it like

Think of it like a box of building bricks for screens. You snap parts together, and it keeps them up to date.

## Definition

React is a JavaScript library for building user interfaces out of components. You describe what the screen should look like for the current state. When the state changes, React works out what changed and updates only those parts. It uses JSX, which lets you write HTML-like tags inside JavaScript. It is the most widely used front-end library today.

## Example

React was first released by Facebook, now Meta, in 2013. Emma uses it to build her shop's product pages from small components.

## Example code

```jsx
function App() {
  return <Greeting name="Emma" />;
}
```

A React app is components inside components.

## Why it matters

React is the front-end tool many job posts ask for. Its ideas shaped many other frameworks.

## Common mistake

Putting everything in global state from day one. Keep state close to where it is used.

## Three principles

- **Built from components.** Small parts make a screen.
- **State drives the screen.** React updates what changed.
- **JSX.** HTML-like tags in JavaScript.

## Related terms

- [UI Component](https://learn.benibix.com/term/development/component)
- [UI State](https://learn.benibix.com/term/development/state)
- [Next.js](https://learn.benibix.com/term/development/nextjs)
- [Vue.js](https://learn.benibix.com/term/development/vue)
- [JavaScript XML (JSX)](https://learn.benibix.com/term/development/jsx)
- [React Native](https://learn.benibix.com/term/development/react-native)
- [React Hooks](https://learn.benibix.com/term/development/react-hooks)

## Told apart from

- [React vs Vue.js](https://learn.benibix.com/compare/react-vs-vue): Both build screens from small parts. React is a library you add tools to as you need them. Vue comes with more of its own tools and is often called easier to learn.

---

Source: https://learn.benibix.com/term/development/react
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
