how to comment in react js file code example
Example 1: how to add comment in react js
{/* 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>
)
}