Skip to content

Commit 6cae188

Browse files
authored
Merge pull request #102 from reactjs/sync-341c3129
Sync with react.dev @ 341c312
2 parents 0ddb711 + d634b3c commit 6cae188

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/content/learn/scaling-up-with-reducer-and-context.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ Now you don't need to pass the list of tasks or the event handlers down the tree
685685
</TasksContext>
686686
```
687687

688-
Instead, any component that needs the task list can read it from the `TaskContext`:
688+
Instead, any component that needs the task list can read it from the `TasksContext`:
689689

690690
```js {2}
691691
export default function TaskList() {

src/content/learn/tutorial-tic-tac-toe.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,7 +2247,11 @@ body {
22472247
22482248
</Sandpack>
22492249
2250+
<<<<<<< HEAD
22502251
Unapozunguka kupitia orodha ya `history` ndani ya function unayopitisha kwa `map`, hoja ya `squares` inapitia kila kipengele cha `history`, na hoja ya `move` inapitia kila kiashiria cha orodha: `0`, `1`, `2`, …. (Katika hali nyingi, ungehitaji vipengele halisi vya orodha, lakini ili kuonyesha orodha ya harakati utahitaji tu viashiria.)
2252+
=======
2253+
As you iterate through the `history` array inside the function you passed to `map`, the `squares` argument goes through each element of `history`, and the `move` argument goes through each array index: `0`, `1`, `2`, …. (In most cases, you'd need the actual array elements, but to render a list of moves you will only need indexes.)
2254+
>>>>>>> 341c312916e1b657262bbe14b134a6f1779fecf1
22512255
22522256
Kwa kila harakati katika historia ya mchezo wa tic-tac-toe, unaunda kipengele cha orodha `<li>` kinachojumuisha kitufe `<button>`. Kitufe kinakuwa na kihariri cha `onClick` kinachoitwa function inayoitwa `jumpTo` (ambayo huja kuwa umeitekeleza bado).
22532257

0 commit comments

Comments
 (0)