Browse Source

Add more details in jsx-in-depth.md (#9006)

* jsx-in-depth.md add ternary statement for javascript expressions section

* jsx-in-depth.md add explanation to get falsey values for props

* update jsx-in-depth.md

* ensure links work locally, remove section about falsey prop values

* Fix links
main
David Hu 8 years ago
committed by Dan Abramov
parent
commit
9c56ac1bed
  1. 2
      docs/jsx-in-depth.md

2
docs/jsx-in-depth.md

@ -196,6 +196,8 @@ function NumberDescriber(props) {
}
```
You can learn more about [conditional rendering](/react/docs/conditional-rendering.html) and [loops](/react/docs/lists-and-keys.html) in the corresponding sections.
### String Literals
You can pass a string literal as a prop. These two JSX expressions are equivalent:

Loading…
Cancel
Save