The nice thing about React, vs others like Vue and Angular, is that we've learned not to write code in strings. You'd think this would be a fundamental law of software engineering, but we keep seeing things like<p><pre><code> v-bind:id="'list-' + id"
</code></pre>
or<p><pre><code> <button [style.color]="isSpecial ? 'red' : 'green'">
</code></pre>
or this.<p>Writing code, not strings, means you can do everything to it that you can do to code. You can type check code. You can lint it. You can optimize it, compile it, validate it, syntax highlight it, format it with tools like Prettier, tree shake it...<p>That's why I like JSX, it's Javascript all the way down. Everything is code. It's a very well designed and thought out DSL.