score:2

Accepted answer

the only way to add comments in jsx is to use {/* ... */} syntax, for example:

...
<div>
  {/* a jsx comment */}
</div>
...

the html comments <!-- ... --> do not work, plain js comments // and /* ... */ do not work too.


Related Query

More Query from same tag