DEV Community

Discussion on: Explain JSX like I'm five.

Collapse
 
icyjoseph profile image
Joseph

JSX is an extension to the JavaScript language, which aims to give a way to fully represent named objects, with their attributes, and their role in a hierarchy, all in one go.

It is not HTML, strictly speaking, but it does carry a lot of similarities, and, perhaps, even creates certain expectations that are not true.

Since JSX just represents an object, we can use that information to do a variety of things, from CLIs, Word Documents, Videos, Web UI, Mobile UI, etc., I for once have used it to make, albeit useless, forward calculation networks, that then I blend with React to render the results to a web UI.

It is pretty cool what one can achieve with JSX syntax.