Skip to content

Commit

Permalink
Merge pull request reactjs#1051 from ghost/fix-typos
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
saranshkataria authored Feb 22, 2019
2 parents d432954 + 984abd2 commit 7ed776e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/tutorial/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Congratulations! You've just "passed a prop" from a parent Board component to a

### Making an Interactive Component {#making-an-interactive-component}

Let's fill the Square component with an "X" when we click it.
Let's fill the Square component with an "X" when we click it.
First, change the button tag that is returned from the Square component's `render()` function to this:

```javascript{4}
Expand Down Expand Up @@ -1015,7 +1015,7 @@ In JavaScript, arrays have a [`map()` method](https://developer.mozilla.org/en-U
```js
const numbers = [1, 2, 3];
const doubled = numbers.map(x => x * 2); // [2, 4, 6]
```
```

Using the `map` method, we can map our history of moves to React elements representing buttons on the screen, and display a list of buttons to "jump" to past moves.

Expand Down

0 comments on commit 7ed776e

Please sign in to comment.