Browse Source

Fixing typo parens -> Parentheses (#406)

main
Inder Singh 7 years ago
committed by Dan Abramov
parent
commit
a42adb28e2
  1. 2
      content/tutorial/tutorial.md

2
content/tutorial/tutorial.md

@ -377,7 +377,7 @@ The usual pattern here is pass down a function from Board to Square that gets ca
}
```
We split the returned element into multiple lines for readability, and added parens around it so that JavaScript doesn't insert a semicolon after `return` and break our code.
We split the returned element into multiple lines for readability, and added parentheses around it so that JavaScript doesn't insert a semicolon after `return` and break our code.
Now we're passing down two props from Board to Square: `value` and `onClick`. The latter is a function that Square can call. Let's make the following changes to Square:

Loading…
Cancel
Save