{/* A JSX comment */}
{/* A JSX comment */}
{/* comment here */}
It is a regular /* Block Comments */, but needs to be wrapped in curly braces.
{/* comment */} or {// comment }
/*Comment in react js*/ or {/*Another comment*/}
render() {
return (
<div>
<!-- This doesn't work! -->
</div>
)
}
/**
* @dev returns the current window size
*/
/**
* @dev simple input component
* @props label for input
* @props placeholder for input
* @props named as (important) takes value in true or false to display ( * )
*/
{/* JSX Comment */} or {// JSX Comment }
{/* <p>This is some text</p> */}