React Basics

Basic idea

UI = f(state). Components return a virtual DOM tree; React reconciles it with the live DOM. State changes trigger re-renders of the affected subtree, not the whole page.

Key facts