Skip to content

Commit

Permalink
Remove old whitespace doc warning
Browse files Browse the repository at this point in the history
This was fixed by facebook#480.
  • Loading branch information
sophiebits committed Feb 13, 2014
1 parent f37474b commit 6f30550
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions docs/docs/02.2-jsx-gotchas.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,6 @@ JSX looks like HTML but there are some important differences you may run into.
>
> For DOM differences, such as the inline `style` attribute, check [here](/react/docs/dom-differences.html).
## Whitespace Removal

JSX doesn't follow the same whitespace elimination rules as HTML. JSX removes all whitespace between two curly braces expressions. If you want to have whitespace, simply add `{' '}`.

```javascript
<div>{this.props.name} {' '} {this.props.surname}</div>
```

Follow [Issue #65](https://github.com/facebook/react/issues/65) for discussion on this behavior.


## HTML Entities

You can insert HTML entities within literal text in JSX:
Expand Down

0 comments on commit 6f30550

Please sign in to comment.