Skip to content

Commit 664dd57

Browse files
authored
[Beta] Fix typos in 'Lifecycle of Reactive Effects' challenge descriptions (#5142)
* [Beta] fix typo in lifecycle-of-reactive-effects challenge 3 * [Beta] fix typo in lifecycle-of-reactive-effects challenge 5
1 parent 35627be commit 664dd57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beta/src/content/learn/lifecycle-of-reactive-effects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ In both of these cases, `canMove` is a reactive variable that you read inside th
11131113
11141114
#### Investigate a stale value bug {/*investigate-a-stale-value-bug*/}
11151115
1116-
In this example, the pink dot should move when the checkbox if on, and should stop moving when the checkbox is off. The logic for this has already been implemented: the `handleMove` event handler checks the `canMove` state variable.
1116+
In this example, the pink dot should move when the checkbox is on, and should stop moving when the checkbox is off. The logic for this has already been implemented: the `handleMove` event handler checks the `canMove` state variable.
11171117
11181118
However, for some reason, the `canMove` state variable inside `handleMove` appears to be "stale": it's always `true`, even after you tick off the checkbox. How is this possible? Find the mistake in the code and fix it.
11191119
@@ -1613,7 +1613,7 @@ In this version, the `App` component passes a boolean prop instead of a function
16131613
16141614
#### Populate a chain of select boxes {/*populate-a-chain-of-select-boxes*/}
16151615
1616-
In this example, there are two select boxes. One select box lets the user picks a planet. Another select box lets the user pick a place *on that planet.* The second box doesn't work yet. Your task is to make it show the places on the chosen planet.
1616+
In this example, there are two select boxes. One select box lets the user pick a planet. Another select box lets the user pick a place *on that planet.* The second box doesn't work yet. Your task is to make it show the places on the chosen planet.
16171617
16181618
Look at how the first select box works. It populates the `planetList` state with the result from the `"/planets"` API call. The currently selected planet's ID is kept in the `planetId` state variable. You need to find where to add some additional code so that the `placeList` state variable is populated with the result of the `"/planets/" + planetId + "/places"` API call.
16191619

0 commit comments

Comments
 (0)