mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
Update tutorial.md, Taking Turns (#8058)
This commit is contained in:
committed by
Dan Abramov
parent
e527b3a464
commit
4e98dba6d3
@@ -254,7 +254,7 @@ You'll need to change `this.props` to `props` both times it appears. Many compon
|
||||
|
||||
An obvious defect in our game is that only X can play. Let's fix that.
|
||||
|
||||
Let's default the first move to be by 'X'. Modify our starting state in our `Game` constructor.
|
||||
Let's default the first move to be by 'X'. Modify our starting state in our `Board` constructor.
|
||||
|
||||
```javascript
|
||||
class Board extends React.Component {
|
||||
|
||||
Reference in New Issue
Block a user