Browse Source

Docs - phrasing sentence in conditional rendering article (#4196)

main
Lukasz Baranowski 3 years ago
committed by GitHub
parent
commit
b41b1dc356
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/pages/learn/conditional-rendering.md

2
beta/src/pages/learn/conditional-rendering.md

@ -534,7 +534,7 @@ export default function PackingList() {
### Show the item importance with `&&` {/*show-the-item-importance-with-*/}
In this example, each `Item` receives a numerical `importance` prop. Use the `&&` operator to render "_(Importance: X)_" in italics, but only for items that have non-zero difficulty. Your item list should end up looking like this:
In this example, each `Item` receives a numerical `importance` prop. Use the `&&` operator to render "_(Importance: X)_" in italics, but only for items that have non-zero importance. Your item list should end up looking like this:
* Space suit _(Importance: 9)_
* Helmet with a golden leaf

Loading…
Cancel
Save