Browse Source

Update tutorial.md (#8896)

* Update tutorial.md

The status <div> used in Board can be deleted as well from render.

* Little tweaks
main
Eduard 8 years ago
committed by Kevin Lacker
parent
commit
cd2aa1400d
  1. 4
      tutorial/tutorial.md

4
tutorial/tutorial.md

@ -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) {

Loading…
Cancel
Save