Browse Source

Update 02.1-jsx-in-depth.md

main
Pete Hunt 12 years ago
committed by petehunt
parent
commit
c0b4dc4c89
  1. 7
      docs/refactor/02.1-jsx-in-depth.md

7
docs/refactor/02.1-jsx-in-depth.md

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

Loading…
Cancel
Save