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: README.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -561,15 +561,17 @@
561
561
```jsx harmony
562
562
<h1>Hello!</h1>
563
563
{
564
-
messages.length>0&&
565
-
<h2>
566
-
You have {messages.length} unread messages.
567
-
</h2>
564
+
messages.length>0&&!isLogin?
565
+
<h2>
566
+
You have {messages.length} unread messages.
567
+
</h2>
568
+
:
569
+
<h2>
570
+
You don't have unread messages.
571
+
</h2>
568
572
}
569
573
```
570
574
571
-
<!-- TODO: fix this section -->
572
-
573
575
18. ### What are "key" props and what is the benefit of using them in arrays of elements?
574
576
575
577
A `key` is a special string attribute you **should** include when creating arrays of elements. *Keys* help React identify which items have changed, are added, or are removed.
0 commit comments