Skip to content

Commit 23c8a28

Browse files
committed
[your-first-component] translate define component
1 parent 50d6770 commit 23c8a28

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/content/learn/your-first-component.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,19 @@ img { height: 200px; }
102102
return <img src="https://i.imgur.com/MK3eW3As.jpg" alt="كاثرين جونسون" />;
103103
```
104104

105-
But if your markup isn't all on the same line as the `return` keyword, you must wrap it in a pair of parentheses:
105+
ولكن إذا لم يكن الترميز موجودًا في نفس السطر مع عبارة `return`، فيجب عليك وضعه بين قوسين:
106106

107107
```js
108108
return (
109109
<div>
110-
<img src="https://i.imgur.com/MK3eW3As.jpg" alt="Katherine Johnson" />
110+
<img src="https://i.imgur.com/MK3eW3As.jpg" alt="كاثرين جونسون" />
111111
</div>
112112
);
113113
```
114114

115115
<Pitfall>
116116

117-
Without parentheses, any code on the lines after `return` [will be ignored](https://stackoverflow.com/questions/2846283/what-are-the-rules-for-javascripts-automatic-semicolon-insertion-asi)!
117+
بدون الأقواس, [سيتم تجاهل](https://stackoverflow.com/questions/2846283/what-are-the-rules-for-javascripts-automatic-semicolon-insertion-asi) أي كود في الأسطر التي تلي عبارة `return`!
118118

119119
</Pitfall>
120120

0 commit comments

Comments
 (0)