Q: React cannot be used without JSX.
B
Answer:
B
Explanation:
False
It is not mandatory to use JSX with React. But React would be elegant if JSX is used.
About JSX
JSX is an inline markup that looks like HTML that gets transformed to JavaScript.
- It starts with a HTML-like open tag, and ends with the corresponding closing tag.
Example:
const element = Hello, world!
;
The syntax is intended to be used by preprocessors such as Babel to transform HTML-like text into standard JavaScript objects.
Related Topic:
Share Above MCQ