Add Comments in JSX

Add Comments in JSX

Challenge: Add Comments in JSX

Intro: JSX is a syntax that gets compiled into valid JavaScript. Sometimes, for readability, you might need to add comments to your code. Like most programming languages, JSX has its own way to do this.

To put comments inside JSX, you use the syntax {/* */} to wrap around the comment text.

Instructions: The code editor has a JSX element similar to what you created in the last challenge. Add a comment somewhere within the provided div element, without modifying the existing h1 or p elements.

Live Preview:

This is a block of JSX

Here’s a subtitle

Leave a Reply

Your email address will not be published. Required fields are marked *