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