0 votes
in JAVA by (731 points)
What is react JSX?

1 Answer

0 votes
by (23.1k points)

JSX is a syntax extension to JavaScript and comes with the full power of

JavaScript. JSX produces React “elements”. You can embed any JavaScript

expression in JSX by wrapping it in curly braces.

For example, below is the syntax for a basic element in React with JSX and its equivalent without it.

React JS Interview Question

Equivalent of the above using React.createElement

...