mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Only fix a small wrong key in example (#8976)
Only fix a small wrong key in example
This commit is contained in:
@@ -22,7 +22,7 @@ JSX produces React "elements". We will explore rendering them to the DOM in the
|
||||
|
||||
You can embed any [JavaScript expression](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Expressions) in JSX by wrapping it in curly braces.
|
||||
|
||||
For example, `2 + 2`, `user.name`, and `formatName(user)` are all valid expressions:
|
||||
For example, `2 + 2`, `user.firstName`, and `formatName(user)` are all valid expressions:
|
||||
|
||||
```js{12}
|
||||
function formatName(user) {
|
||||
|
||||
Reference in New Issue
Block a user