React is different from other technologies that HTML is no longer a string. For strings it's just a value, we still need to parse it, and operate with APIs design for it. Normally the APIs are $x.before(y)$x.after(y)$x.html(y). But with React it's composing tags and elements with functions and JavaScript data structures, which mean it follows rules provides data types. This thing makes it more reliable than string. Remember that in Vue? If v-bind="a(b,c)" throws an error we need Vue parser to find it, thats strange for a DSL.
Jon
ClojureScript Developer.
React is different from other technologies that HTML is no longer a string. For strings it's just a value, we still need to parse it, and operate with APIs design for it. Normally the APIs are
$x.before(y)$x.after(y)$x.html(y). But with React it's composing tags and elements with functions and JavaScript data structures, which mean it follows rules provides data types. This thing makes it more reliable than string. Remember that in Vue? Ifv-bind="a(b,c)"throws an error we need Vue parser to find it, thats strange for a DSL.