• +91 9723535972
  • info@interviewmaterial.com

ReactJS Interview Questions and Answers

Related Subjects

Question - How to write comments in React?

Answer - The comments in React/JSX are similar to JavaScript Multiline comments but are wrapped in curly braces. Single-line comments:

{/* Single-line comments(In vanilla JavaScript, the single-line comments are represented by double slash(//)) */} {`Welcome ${user}, let's play React`}
Multi-line comments:
{/* Multi-line comments for more than one line */} {`Welcome ${user}, let's play React`}

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners