how to put comment in jsx code example
Example 1: comment jsx code
{/* comment here */}
It is a regular /* Block Comments */, but needs to be wrapped in curly braces.
Example 2: how to comment out code in react js
render() {
return (
<div>
<!-- This doesn't work! -->
</div>
)
}