Question: how does jsx get compiled?
Answer: So, if JavaScript files contains JSX, that that file will have to be transpiled. That means that before the file gets to the web browser, a JSX compiler will translate any JSX into regular JavaScript. JSX produces React “elements”. A React element is simply an object representation of a DOM node.