Skip to content

Commit 6f30550

Browse files
committed
Remove old whitespace doc warning
This was fixed by #480.
1 parent f37474b commit 6f30550

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Diff for: docs/docs/02.2-jsx-gotchas.md

-11
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,6 @@ JSX looks like HTML but there are some important differences you may run into.
1313
>
1414
> For DOM differences, such as the inline `style` attribute, check [here](/react/docs/dom-differences.html).
1515
16-
## Whitespace Removal
17-
18-
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 `{' '}`.
19-
20-
```javascript
21-
<div>{this.props.name} {' '} {this.props.surname}</div>
22-
```
23-
24-
Follow [Issue #65](https://github.com/facebook/react/issues/65) for discussion on this behavior.
25-
26-
2716
## HTML Entities
2817

2918
You can insert HTML entities within literal text in JSX:

0 commit comments

Comments
 (0)