how to comment out react components code example Example 1: comment in react {/* A JSX comment */} Example 2: multiline comment in react {/* Multi line comment */}