commenting in react jsx code example
Example 1: comment in react
{/* A JSX comment */}
Example 2: how to comment out code in react js
render() {
return (
<div>
<!-- This doesn't work! -->
</div>
)
}
{/* A JSX comment */}
render() {
return (
<div>
<!-- This doesn't work! -->
</div>
)
}