Update 02.1-jsx-in-depth.md

This commit is contained in:
Pete Hunt
2013-07-14 16:48:17 -07:00
committed by petehunt
parent c1bf5a8a81
commit c0b4dc4c89

View File

@@ -141,6 +141,13 @@ var content = <Container>{window.isLoggedIn ? <Nav /> : <Login />}</Container>;
var content = Container(null, window.isLoggedIn ? Nav(null, null) : Login(null, null));
```
#### Comments
It's easy to add comments within your JSX; they're just JS expressions:
```javascript
var content = <Container>{/* this is a comment */}<Nav /></Container>;
```
## Tooling
Beyond the compilation step, JSX does not require any special tools.