From 65a2b204cce10234359c54c82431ac40df39c17e Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Thu, 13 Feb 2014 01:36:20 -0800 Subject: [PATCH] Remove old whitespace doc warning This was fixed by #480. --- docs/02.2-jsx-gotchas.md | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/docs/02.2-jsx-gotchas.md b/docs/02.2-jsx-gotchas.md index f5cf531a..21074dd2 100644 --- a/docs/02.2-jsx-gotchas.md +++ b/docs/02.2-jsx-gotchas.md @@ -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 -
{this.props.name} {' '} {this.props.surname}
-``` - -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: