I don't really see much of a difference - that is still storing it as a text attribute inside a DOM node.
To be clear, I vastly prefer Reacts approach of putting HTML into JS, rather than Vue/Angulars approach of putting JS into HTML.
To be clear, I vastly prefer Reacts approach of putting HTML into JS, rather than Vue/Angulars approach of putting JS into HTML.
Both approaches are valid, and each comes with its own set of tradeoffs.