The library for web and native user interfaces.
Update 02.1-jsx-in-depth.md
Pete Hunt committed
Jul 14, 2013 at 16:48 UTC
1c51cc34cd58b2f3b838cca57aebf3a9d3b4d525
1 file changed
+7
docs/docs/refactor/02.1-jsx-in-depth.md
+7
@@ -141,6 +141,13 @@ var content = <Container>{window.isLoggedIn ? <Nav /> : <Login />}</Container>;
141
var content = Container(null, window.isLoggedIn ? Nav(null, null) : Login(null, null));
142
```
143
144
+#### Comments
145
+
146
+It's easy to add comments within your JSX; they're just JS expressions:
147
+```javascript
148
+var content = <Container>{/* this is a comment */}<Nav /></Container>;
149
+```
150
+
151
## Tooling
152
153
Beyond the compilation step, JSX does not require any special tools.