I don't understand how JSX came to be.
What sort of person, when faced with a task to generate html from javascript, thought: sure, the best way to do that is include <tags> in the source and precompile them into function calls??
I can sort of understand that React Native simply inherited this very questionable decision.
But why didn't they create njsx in the first place? Guess we'll never know.
https://github.com/uqbar-project/njsx