3 ms·
Where did you get this idea? JSX doesn’t specify what markup it renders to, or even that it renders to any markup at all. The syntax most closely resembles XML
by eyelidlessness 2y ago
Where did you get this idea? JSX doesn’t specify what markup it renders to, or even that it renders to any markup at all. The syntax most closely resembles XML (and therefore XHTML), in that it requires closing tags (which might be satisfied by self-closing with />). But this is an authoring constraint, it has no bearing at all on output.
- ttfkam 2y agoSo… you can use other markups seamlessly like SVG and MathML… just like XHTML. Walk like a duck, talk like a duck.
- eyelidlessness 2y agoHuh? I didn’t say anything about what markup languages you can use.
- recursive 2y agoNot exactly seamless. You have to change some of the attribute casing in svg.