Remove old whitespace doc warning

This was fixed by #480.
This commit is contained in:
Ben Alpert 2014-02-13 01:36:20 -08:00
parent f37474b75b
commit 6f305505a7
1 changed files with 0 additions and 11 deletions

View File

@ -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: