Skip to content

Commit

Permalink
Change "return statement" to "return keyword" (reactjs#4137)
Browse files Browse the repository at this point in the history
  • Loading branch information
smikitky committed Feb 7, 2022
1 parent 466809e commit 4be33b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beta/src/pages/learn/your-first-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Return statements can be written all on one line, as in this component:
return <img src="https://i.imgur.com/MK3eW3As.jpg" alt="Katherine Johnson" />;
```

But if your markup isn't all on the same line as the return statement, you must wrap it in a pair of parentheses like this:
But if your markup isn't all on the same line as the `return` keyword, you must wrap it in a pair of parentheses like this:

```js
return (
Expand Down

0 comments on commit 4be33b8

Please sign in to comment.