Adding code comments to React JSX

Yet another very quick example, straight to the point

Comments in react jsx are different from commenting in standard HTML, for example this won’t work:

render() {
  return (
    <div>
      <!-- This won't work! -->
    </div>
  )
}

You need to use JavaScript comment syntax, wrapped in curly brackets {}:

render() {
  return (
    <div>
      {/* This will work! */}
    </div>
  )
}