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