Fixing typo parens -> Parentheses (#406)

This commit is contained in:
Inder Singh
2017-12-09 16:26:01 +05:30
committed by Dan Abramov
parent 3d6c10d893
commit a42adb28e2

View File

@@ -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: