Which of the following is a key feature of JSX syntax in React?

  • JSX is a templating language for HTML.
  • JSX allows defining components in JavaScript.
  • JSX is a standalone language separate from JavaScript.
  • JSX provides a way to write HTML elements and components in JavaScript.
A key feature of JSX is that it allows developers to write HTML elements and components directly in JavaScript. This makes it easier to build and manage user interfaces in React by combining the power of JavaScript and the structure of HTML. The other options do not accurately describe JSX.
Add your answer
Loading...

Leave a comment

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