DEV Community

Discussion on: Explain JSX like I'm five.

Collapse
 
codingjlu profile image
codingjlu

JSX allows you to write HTML in JavaScript and is treated as a value, which is then compiled to JavaScript in which a function is called to represent the element specified. This code is usually then used in the browser to create virtual DOMs.