|
|
|
|
|
by wruza
1685 days 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. |
|