From 468f158a7d202831533f522ef8bacd2edb79cb12 Mon Sep 17 00:00:00 2001 From: dan Date: Sat, 7 May 2022 17:19:02 +0100 Subject: [PATCH] [Beta] Stylistic nits (#4636) --- beta/src/pages/learn/adding-interactivity.md | 10 +++++----- beta/src/pages/learn/describing-the-ui.md | 4 ++-- beta/src/pages/learn/editor-setup.md | 8 ++++---- .../learn/extracting-state-logic-into-a-reducer.md | 2 +- beta/src/pages/learn/index.md | 8 ++++---- beta/src/pages/learn/keeping-components-pure.md | 2 +- .../pages/learn/manipulating-the-dom-with-refs.md | 6 +++--- .../learn/passing-data-deeply-with-context.md | 2 +- .../pages/learn/passing-props-to-a-component.md | 2 +- .../pages/learn/preserving-and-resetting-state.md | 14 +++++++------- .../pages/learn/referencing-values-with-refs.md | 4 ++-- beta/src/pages/learn/render-and-commit.md | 2 +- beta/src/pages/learn/responding-to-events.md | 4 ++-- .../learn/sharing-state-between-components.md | 2 +- beta/src/pages/learn/state-a-components-memory.md | 6 +++--- beta/src/pages/learn/updating-arrays-in-state.md | 2 +- beta/src/pages/learn/writing-markup-with-jsx.md | 2 +- beta/src/pages/learn/your-first-component.md | 2 +- 18 files changed, 41 insertions(+), 41 deletions(-) diff --git a/beta/src/pages/learn/adding-interactivity.md b/beta/src/pages/learn/adding-interactivity.md index 73b7e0597..b2318d6a4 100644 --- a/beta/src/pages/learn/adding-interactivity.md +++ b/beta/src/pages/learn/adding-interactivity.md @@ -4,7 +4,7 @@ title: Adding Interactivity -Some things on the screen update in response to user input. For example, clicking an image gallery switches the active image. In React, data that changes over time is called state. You can add state to any component, and update it as needed. In this chapter, you'll learn how to write components that handle interactions, update their state, and display different output over time. +Some things on the screen update in response to user input. For example, clicking an image gallery switches the active image. In React, data that changes over time is called *state.* You can add state to any component, and update it as needed. In this chapter, you'll learn how to write components that handle interactions, update their state, and display different output over time. @@ -22,7 +22,7 @@ Some things on the screen update in response to user input. For example, clickin ## Responding to events {/*responding-to-events*/} -React lets you add event handlers to your JSX. Event handlers are your own functions that will be triggered in response to user interactions like clicking, hovering, focusing on form inputs, and so on. +React lets you add *event handlers* to your JSX. Event handlers are your own functions that will be triggered in response to user interactions like clicking, hovering, focusing on form inputs, and so on. Built-in components like `