Comment by wruza
5 years ago
Jsx is not js, it’s python!
<div className={red}>
{text}
</div>
import react
react.create_element("div", {"className":red}, text)
By the same logic we could call any structured format “is js”, because it is homomorphic to some js expressions. Are xml, pug, plist, dbf, all js? Nope, it’s all python.
No comments yet
Contribute on Hacker News ↗