Skip to content

Commit

Permalink
Unique headings for linking purposes (facebook#9259)
Browse files Browse the repository at this point in the history
Previously two headings were 'Javascript Expressions' - now 'Javascript
Expressions as Props' and 'Javascript Expressions as Children'
(cherry picked from commit 363f6cb)
  • Loading branch information
wktfraser authored and flarnie committed Jun 7, 2017
1 parent a46332d commit c4b08b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/jsx-in-depth.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function Story(props) {

There are several different ways to specify props in JSX.

### JavaScript Expressions
### JavaScript Expressions as Props

You can pass any JavaScript expression as a prop, by surrounding it with `{}`. For example, in this JSX:

Expand Down Expand Up @@ -308,7 +308,7 @@ You can mix together different types of children, so you can use string literals

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.

### JavaScript Expressions
### JavaScript Expressions as Children

You can pass any JavaScript expression as children, by enclosing it within `{}`. For example, these expressions are equivalent:

Expand Down

0 comments on commit c4b08b7

Please sign in to comment.