ReactJS ReactJS - Basic Question #4319
MCQ Single Best Answer Not Set

QReact cannot be used without JSX.

ID: #4319 ReactJS - Basic 247 views
Question Info
#4319Q ID
Not SetDifficulty
ReactJS - Basic Topic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A True
  • B False
Correct Answer: Option 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 = <h1>Hello, world!</h1>;

The syntax is intended to be used by preprocessors such as Babel to transform HTML-like text into standard JavaScript objects.

Share This Question

Challenge a friend or share with your study group.