Update button labels

This commit is contained in:
Dan Abramov
2017-10-03 17:03:18 +01:00
committed by GitHub
parent bddc8a33bf
commit cb860f4a5b

View File

@@ -901,8 +901,8 @@ Let's show the previous moves made in the game so far. We learned earlier that R
const moves = history.map((step, move) => {
const desc = move ?
'Move #' + move :
'Game start';
'Go to move #' + move :
'Go to game start';
return (
<li>
<button onClick={() => this.jumpTo(move)}>{desc}</button>
@@ -988,8 +988,8 @@ For our move list, we already have a unique ID for each step: the number of the
```js{6}
const moves = history.map((step, move) => {
const desc = move ?
'Move #' + move :
'Game start';
'Go to move #' + move :
'Go to game start';
return (
<li key={move}>
<button onClick={() => this.jumpTo(move)}>{desc}</button>