From e46b02f40b2aac36c877880fae48150596901ed4 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sat, 7 May 2022 18:41:49 +0100 Subject: [PATCH] Tweak captions --- beta/src/pages/learn/index.md | 8 ++++---- beta/src/pages/learn/preserving-and-resetting-state.md | 4 ++-- beta/src/pages/learn/reacting-to-input-with-state.md | 2 +- beta/src/pages/learn/writing-markup-with-jsx.md | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/beta/src/pages/learn/index.md b/beta/src/pages/learn/index.md index 9dfb71467..827c92fa5 100644 --- a/beta/src/pages/learn/index.md +++ b/beta/src/pages/learn/index.md @@ -394,13 +394,13 @@ In the previous example, each `MyButton` had its own independent `count`, and wh -Before clicking, each MyButton has a count value set to zero. +Initially, each `MyButton`'s `count` state is `0` -After clicking, only one MyButton count value has updated. +On click, the first `MyButton` updates its `count` state to `1` @@ -416,13 +416,13 @@ In this example, it is `MyApp`: -Before clicking, count is stored in MyApp and passed down to both children as props. +Initially, `MyApp`'s `count` state is `0` and is passed down to both children -After clicking, count updates in MyApp and the new value is passed to both children as props. +On click, `MyApp` updates its `count` state to `1` and passes it down to both children diff --git a/beta/src/pages/learn/preserving-and-resetting-state.md b/beta/src/pages/learn/preserving-and-resetting-state.md index e3d3f7319..80135a1a2 100644 --- a/beta/src/pages/learn/preserving-and-resetting-state.md +++ b/beta/src/pages/learn/preserving-and-resetting-state.md @@ -27,7 +27,7 @@ React also uses tree structures to manage and model the UI you make. React makes -From components, React creates a UI Tree which React DOM uses to render the DOM. +From components, React creates a UI tree which React DOM uses to render the DOM @@ -383,7 +383,7 @@ When you tick or clear the checkbox, the counter state does not get reset. Wheth -Updating the `App` state does not reset the `Counter` state because it stays in the same position +Updating the `App` state does not reset the `Counter` because `Counter` stays in the same position diff --git a/beta/src/pages/learn/reacting-to-input-with-state.md b/beta/src/pages/learn/reacting-to-input-with-state.md index 48ef3f584..7cf077e44 100644 --- a/beta/src/pages/learn/reacting-to-input-with-state.md +++ b/beta/src/pages/learn/reacting-to-input-with-state.md @@ -336,7 +336,7 @@ To help visualize this flow, try drawing each state on paper as a labeled circle -Form States +Form states diff --git a/beta/src/pages/learn/writing-markup-with-jsx.md b/beta/src/pages/learn/writing-markup-with-jsx.md index 127c516d9..4e4ff9298 100644 --- a/beta/src/pages/learn/writing-markup-with-jsx.md +++ b/beta/src/pages/learn/writing-markup-with-jsx.md @@ -36,19 +36,19 @@ JavaScript -But as the Web became more interactive, logic increasingly determined content. JavaScript was in charge of the HTML! This is why **in React, rendering logic and markup live together in the same place—components!** +But as the Web became more interactive, logic increasingly determined content. JavaScript was in charge of the HTML! This is why **in React, rendering logic and markup live together in the same place—components.** -Sidebar.js +`Sidebar.js` React component -Form.js +`Form.js` React component