You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/learn/conditional-rendering.md
+4-20Lines changed: 4 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,11 +52,7 @@ export default function PackingList() {
52
52
</Sandpack>
53
53
54
54
55
-
<<<<<<< HEAD
56
-
Обратите внимание, что у некоторых компонентов `Item` проп `isPacked` имеет значение `true`, вместо значения `false`. Если `isPacked={true}`, вы хотите добавить галочку(✔) к упакованным вещам.
57
-
=======
58
-
Notice that some of the `Item` components have their `isPacked` prop set to `true` instead of `false`. You want to add a checkmark (✅) to packed items if `isPacked={true}`.
59
-
>>>>>>> 7d50c3ffd4df2dc7903f4e41069653a456a9c223
55
+
Обратите внимание, что у некоторых компонентов `Item` проп `isPacked` имеет значение `true`, вместо значения `false`. Если `isPacked={true}`, вы хотите добавить галочку(✅) к упакованным вещам.
60
56
61
57
Можно реализовать это с помощью [управляющей конструкции `if`/`else`](https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Statements/if...) таким образом:
62
58
@@ -206,11 +202,7 @@ return (
206
202
);
207
203
```
208
204
209
-
<<<<<<< HEAD
210
-
Вы можете читать это как *"если `isPacked` равно true, тогда (`?`) рендерим `name + ' ✔'`, в противном случае (`:`) рендерим `name`"*.
211
-
=======
212
-
You can read it as *"if `isPacked` is true, then (`?`) render `name + ' ✅'`, otherwise (`:`) render `name`"*.
213
-
>>>>>>> 7d50c3ffd4df2dc7903f4e41069653a456a9c223
205
+
Вы можете читать это как *"если `isPacked` равно true, тогда (`?`) рендерим `name + ' ✅'`, в противном случае (`:`) рендерим `name`"*.
0 commit comments