Comments inside children section of tag should be placed inside braces code example
Example 1: how to add comment in react js
{}
Example 2: comment out html in react
how to add multiple comment in react
{}
Example 3: how to comment out code in react js
render() {
return (
<div>
<!-- This doesn't work! -->
</div>
)
}
Example 4: Comments inside children section of tag should be placed inside braces
<div className="dropdown">
{}
<Button whenClicked={this.handleClick} className="btn-default" title={this.props.title} subTitleClassName="caret"></Button>
<UnorderedList />
</div>