Skip to content

Commit

Permalink
Merge pull request #1 from reactjs/main
Browse files Browse the repository at this point in the history
  • Loading branch information
osmandlsmn committed May 2, 2023
2 parents 6229bdc + 305a059 commit 4334398
Show file tree
Hide file tree
Showing 4 changed files with 260 additions and 260 deletions.
2 changes: 1 addition & 1 deletion src/content/learn/conditional-rendering.md
Expand Up @@ -626,7 +626,7 @@ export default function PackingList() {
Note that you must write `importance > 0 && ...` rather than `importance && ...` so that if the `importance` is `0`, `0` isn't rendered as the result!
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>`.
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>`.
</Solution>
Expand Down

0 comments on commit 4334398

Please sign in to comment.