React: Comments Reactjs

Created on 11 Apr 2017  路  5Comments  路  Source: facebook/react

i was use so many way to comments my code in js file it not run the comment code
but in website i still see my comments code , it just show code like text
can i not see my comment in website ??

captbture

capture

Most helpful comment

@forgetaboutme is exactly right, using {/* */} should work fine. Here's an example. Hope that helps!

All 5 comments

i try other way but still like this
{/**/}
or
it's error if i use type of comments

When using JSX, you need to wrap comments around curly braces: {/* This is a comment */}

@forgetaboutme is exactly right, using {/* */} should work fine. Here's an example. Hope that helps!

thank guys last day i use {/*/} too but it say "not define {/ "

Please provide full code example if you have issues.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Prinzhorn picture Prinzhorn  路  3Comments

zpao picture zpao  路  3Comments

varghesep picture varghesep  路  3Comments

jimfb picture jimfb  路  3Comments

zpao picture zpao  路  3Comments