Question & Answer

What is JSX in React?

What is JSX in React? A) A built-in function for rendering components
B) A package used to style React components
C) A syntax extension that allows writing HTML in JavaScript
D) A templating engine that works with React

1 Answer

Verified archive
Quizzma TeamMay 21, 2025

The correct answer is C) A syntax extension that allows writing HTML in JavaScript.

JSX (JavaScript XML) is a syntax extension for JavaScript that is commonly used with React. It allows you to write HTML-like code directly within your JavaScript, making it easier to create and visualize UI components. JSX ultimately gets transformed into regular JavaScript function calls, enabling developers to build React components with a familiar syntax.

If you have more questions about React or any other topic, feel free to ask!