Add Comments in JSX: What about parentheses?

In this exercise there are some parentheses which encompasse the code inside the variable.
There is nothing explained about them in the courses before.

Some explanations?

Well, that’s how you would do it if you wanted to comment on JSX content. Try using the ‘//’ to comment the


out and see what the output will be.

I’m not talking about parentheses of comment.
look hereunder in yellow:

Ah, that’s what you use for a multi-line JSX.
Read this if you want to get a better understanding. :smiley:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.