Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/tutorial/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ After: You should see a number in each square in the rendered output.
Let's make the Square component fill in an "X" when you click it. Try changing the opening tag returned in the `render()` function of the `Square` class to:

```html
<button className="square" onClick={() => alert('click')}>
<button className="square" onClick={() => alert('click')}/>
```

This uses the new JavaScript arrow function syntax. If you click on a square now, you should get an alert in your browser.
Expand Down