Browse Source

Change "return statement" to "return keyword" (#4137)

main
Soichiro Miki 3 years ago
committed by GitHub
parent
commit
4be33b8128
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/learn/your-first-component.md

2
beta/src/pages/learn/your-first-component.md

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

Loading…
Cancel
Save