Skip to content

Commit 079f493

Browse files
committed
fix marge bug
1 parent 1dc0b32 commit 079f493

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

content/docs/introducing-jsx.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,13 @@ React [לא דורשת](/docs/react-without-jsx.html) שימוש ב-JSX, אבל
3333
בדוגמה הבאה, אנו מכריזים על משתנה הנקרא `name` (שם) ולאחר מכן משתמשים בו בתוך JSX על ידי עטיפתו בסוגריים מסולסלים:
3434

3535
```js{1,2}
36-
<<<<<<< HEAD
3736
const name = 'גיא פרץ';
3837
const element = <h1>שלום, {name}</h1>;
3938
4039
ReactDOM.render(
4140
element,
4241
document.getElementById('root')
4342
);
44-
=======
45-
const name = 'Josh Perez';
46-
const element = <h1>Hello, {name}</h1>;
47-
>>>>>>> 84ad3308338e2bb819f4f24fa8e9dfeeffaa970b
4843
```
4944

5045
ניתן לשים כל [ביטוי JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators#Expressions) חוקי בתוך סוגריים מסולסלים ב-JSX. לדוגמה, `2 + 2`, `user.firstName`, או `formatName(user)` הם כולם ביטויים חוקיים ב-JavaScript.
@@ -68,7 +63,7 @@ const element = (
6863
);
6964
```
7065

71-
**[Try it on CodePen](https://codepen.io/gaearon/pen/PGEjdG?editors=1010)**
66+
**[נסו את זה ב-codepen](https://codepen.io/gaearon/pen/PGEjdG?editors=1010)**
7267

7368
אנו מפצלים את JSX על מספר שורות עבור הקריאות. אף על פי שזה לא נדרש, כאשר עושים זאת, אנו ממליצים גם לעטוף אותו בסוגריים כדי למנוע את החסרונות של [הכנסת נקודה-פסיק אוטומטית](https://stackoverflow.com/q/2846283).
7469

0 commit comments

Comments
 (0)