mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Update tutorial.md (#8896)
* Update tutorial.md The status <div> used in Board can be deleted as well from render. * Little tweaks
This commit is contained in:
@@ -399,7 +399,9 @@ if (winner) {
|
||||
</div>
|
||||
```
|
||||
|
||||
Its `handleClick` can push a new entry onto the stack by concatenating the new history entry to make a new history array:
|
||||
Since Game is now rendering the status, we can delete `<div className="status">{status}</div>` from the Board's `render` function.
|
||||
|
||||
Game's `handleClick` can push a new entry onto the stack by concatenating the new history entry to make a new history array:
|
||||
|
||||
```javascript
|
||||
handleClick(i) {
|
||||
|
||||
Reference in New Issue
Block a user