Browse Source

Only fix a small wrong key in example (#8976)

Only fix a small wrong key in example
main
Moacir Rosa 8 years ago
committed by Dan Abramov
parent
commit
a70df84837
  1. 2
      docs/introducing-jsx.md

2
docs/introducing-jsx.md

@ -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) {

Loading…
Cancel
Save