Browse Source

[docs] Make sure JSX comments code is in block

main
Paul O’Shannessy 12 years ago
parent
commit
9e96cc247a
  1. 1
      docs/02.1-jsx-in-depth.md

1
docs/02.1-jsx-in-depth.md

@ -152,6 +152,7 @@ var content = Container(null, window.isLoggedIn ? Nav(null) : Login(null));
### Comments ### Comments
It's easy to add comments within your JSX; they're just JS expressions: It's easy to add comments within your JSX; they're just JS expressions:
```javascript ```javascript
var content = <Container>{/* this is a comment */}<Nav /></Container>; var content = <Container>{/* this is a comment */}<Nav /></Container>;
``` ```

Loading…
Cancel
Save