React is a JavaScript library for building user interfaces, created by Meta. It lets you build web apps from reusable pieces called components. For vibe coders, React is the most popular UI framework that AI coding tools generate code for — making it the default choice for building web apps with AI.
React dominates vibe coding because AI models have been trained on massive amounts of React code. When you prompt an AI to build a web interface, it almost always reaches for React first.
| Concept | What It Means |
|---|---|
| Component | A reusable piece of UI (button, card, page) |
| Props | Data you pass into a component |
| State | Data that can change and trigger re-renders |
| JSX | HTML-like syntax you write inside JavaScript |
| Hook | Special functions for managing state and effects |
Most vibe coding tools default to a React-based stack:
Not deeply — but understanding the basics helps:
useState, useEffect show up everywhere