mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
Removed unnecessary dot. (#494)
This commit is contained in:
committed by
Dan Abramov
parent
62113ec265
commit
21300896dc
@@ -1053,7 +1053,7 @@ Add a method called `jumpTo` to the Game class:
|
||||
}
|
||||
```
|
||||
|
||||
Then update `stepNumber` when a new move is made by adding `stepNumber: history.length` to the state update in Game's `handleClick`. We'll also update `handleClick` to be aware of `stepNumber` when reading the current board state so that you can go back in time then click in the board to create a new entry.:
|
||||
Then update `stepNumber` when a new move is made by adding `stepNumber: history.length` to the state update in Game's `handleClick`. We'll also update `handleClick` to be aware of `stepNumber` when reading the current board state so that you can go back in time then click in the board to create a new entry:
|
||||
|
||||
```javascript{2,13}
|
||||
handleClick(i) {
|
||||
|
||||
Reference in New Issue
Block a user