I recently learned that there are actually several ways to add comments in JSX in React.
I had known about the {/* comment */}
syntax but realize you could use //
within a jsx element:
function MyComponent() {
return (
<div>
<Hello
message="Hello, World!" // message prop requires a string
/>
</div>
)
}