It looks very similar to the idea of using HTML itself as a templating language and working on the DOM directly as opposed to text-based templating, see
https://ontology2.com/the-book/html5-the-official-document-l...
It’s a definite path not taken.
https://ontology2.com/the-book/html5-the-official-document-l...
It’s a definite path not taken.
EDIT: Because JSX itself is so popular (React), I think I uncharitably misunderstood you as saying "There's a reason we don't do things this way" rather than saying "Here is a different approach." Could you help me understand what you meant?