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.
Loading...
Related Quiz
- What are portals in React?
- Your e-commerce Next.js application needs to display real-time inventory data on product pages. Which data-fetching method would be most appropriate?
- What do we use in React to pass data from a parent component to a child component?
- Which of the following best describes the concept of "prop drilling"?
- Which React feature allows you to display a fallback UI while a component tree waits for a component to be lazily loaded?