From 6d2dd794ee90e28985b90448a6bde616c3bf056e Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Tue, 8 Apr 2014 15:24:09 -0700 Subject: [PATCH] Document multiple ways to insert comments in JSX --- docs/docs/02.1-jsx-in-depth.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/docs/docs/02.1-jsx-in-depth.md b/docs/docs/02.1-jsx-in-depth.md index 6c2a78d646..595c0c5fec 100644 --- a/docs/docs/02.1-jsx-in-depth.md +++ b/docs/docs/02.1-jsx-in-depth.md @@ -161,10 +161,20 @@ var content = Container(null, window.isLoggedIn ? Nav(null) : Login(null)); ### 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. You just need to be careful to put `{}` around the comments when you are within the children section of a tag. ```javascript -var content = {/* this is a comment */}