Concepts

React

JavaScript library for building user interfaces through declarative, reusable components, with an ecosystem spanning from SPAs to full-stack applications with Server Components.

seed#react#javascript#ui#components#frontend#jsx

What it is

React is a JavaScript library for building user interfaces. Its mental model: UI is a function of state. When state changes, React efficiently updates only the DOM parts that need to change.

Key concepts

ConceptFunction
ComponentsReusable UI blocks
JSXSyntax combining JavaScript and HTML
PropsData flowing from parent to child
StateInternal data that changes over time
HooksFunctions for using state and effects in functional components
Virtual DOMIn-memory representation for efficient diffing

Evolution

EraModel
2013-2018Class components, lifecycle methods
2019-2023Hooks, functional components
2023+Server Components, streaming SSR

Ecosystem

  • Next.js: full-stack framework
  • Tailwind CSS: utility-first CSS
  • React Router / TanStack Router: routing
  • Zustand / Jotai: state management

Why it matters

React defined the component-based UI paradigm that dominates modern web development. Its ecosystem — Next.js, React Native, Server Components — makes it relevant for both web and mobile. Understanding its rendering mental model is fundamental for any frontend developer.

References

Concepts