Unique headings for linking purposes (#9259)
Previously two headings were 'Javascript Expressions' - now 'Javascript Expressions as Props' and 'Javascript Expressions as Children'
Fraser Haer committed
Apr 18, 2017 at 23:47 UTC
363f6cb2e592f2a283eac279fb393666dcb92b65
1 file changed
+2
-2
docs/docs/jsx-in-depth.md
+2
-2
@@ -172,7 +172,7 @@ function Story(props) {
172
173
There are several different ways to specify props in JSX.
174
175
-### JavaScript Expressions
175
+### JavaScript Expressions as Props
176
177
You can pass any JavaScript expression as a prop, by surrounding it with `{}`. For example, in this JSX:
178
@@ -308,7 +308,7 @@ You can mix together different types of children, so you can use string literals
308
309
A React component can't return multiple React elements, but a single JSX expression can have multiple children, so if you want a component to render multiple things you can wrap it in a `div` like this.
310
311
-### JavaScript Expressions
311
+### JavaScript Expressions as Children
312
313
You can pass any JavaScript expression as children, by enclosing it within `{}`. For example, these expressions are equivalent:
314