add comments react js code example Example 1: how to add comment in react js {/* A JSX comment */} Example 2: comment in react {/* A JSX comment */}