THE BIG IDEA
You clicked +1 and the number changed. Between those two moments, React ran a five-stage pipeline: write the state shelf, re-run your component, build a fresh tree of cheap objects, diff it against the old tree, and patch the ONE real DOM node that differs. Watch it happen — and watch the famous mysteries (why console.log shows the old value, why the whole function re-runs, why React is still fast) dissolve into machinery.