Skip to content

Commit 1e0f784

Browse files
Merge pull request #1 from reactjs/main
merge
2 parents 2f910ea + c863c0b commit 1e0f784

File tree

3 files changed

+170
-171
lines changed

3 files changed

+170
-171
lines changed

src/content/learn/conditional-rendering.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ export default function PackingList() {
626626
627627
Note that you must write `importance > 0 && ...` rather than `importance && ...` so that if the `importance` is `0`, `0` isn't rendered as the result!
628628
629-
In this solution, two separate conditions are used to insert a space between then name and the importance label. Alternatively, you could use a fragment with a leading space: `importance > 0 && <> <i>...</i></>` or add a space immediately inside the `<i>`: `importance > 0 && <i> ...</i>`.
629+
In this solution, two separate conditions are used to insert a space between the name and the importance label. Alternatively, you could use a fragment with a leading space: `importance > 0 && <> <i>...</i></>` or add a space immediately inside the `<i>`: `importance > 0 && <i> ...</i>`.
630630
631631
</Solution>
632632

0 commit comments

Comments
 (0)