What Is JSX? [Snippet]

JSX stands for JavaScript XML. It is used with React to describe what the UI should look like. JSX produces React “elements” in a familiar and easy manner. React doesn’t require using JSX, but you can find it helpful as a visual aid when working with UI inside the JavaScript code. It also allows React to show more useful error and warning messages. If you want to create a React element without JSX you need to write something like this:
var temp = React.createElement( ‘h1’, null, ‘test’ );
By using JSX, the above code isreduced to the following:

Link: https://dzone.com/articles/what-is-jsx?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev