3 ms·
JSX is not, and I mean this emphatically not, "HTML tags". They're a tree of objects. That they sometimes represent HTML is orthogonal to why it's fantastic. T
by eropple 7y ago
JSX is not, and I mean this emphatically not, "HTML tags". They're a tree of objects. That they sometimes represent HTML is orthogonal to why it's fantastic.
To elide all of the power and powerformance that JSX provides in the situations where it's appropriate as just "HTML tags" fundamentally misunderstands what they are and why they are powerful.
Data structures are more than text. This is a good thing.
- slifin 7y agoJSX is data after compilation which means it's not as transparent or accessible programmatically in the same way hiccup is That said I'm not sure it'd be as easy to do hiccup in pure JS because names aren't a first class data type there