Introducing Svelte, and Comparing Svelte with React and Vue (2021)
I don&#x27;t see how Svelte is &quot;React without all of the bullshit&quot;, Svelte really seems like the complete opposite of React. To me it&#x27;s more like a modern Angular 1 where it&#x27;s a magic HTML DSL (just now with a compile step to make it more optimized). For instance, Angular 1 had the ng-if attribute in templates for optionally including parts of the template based on JS values and Svelte has {#if ... } blocks in templates that do similar. Whereas React is just JavaScript, you just write a function and ifs like anywhere else.<p>Seeing Svelte take the global variables (are they now not global because of Svelte&#x27;s compiler? probably) in a &lt;script&gt; tag and binding them to HTML elements seems too magic for me. Whereas at least with React, I can sort of understand how it works under the hood and could probably write a poorly optimized version of it without thinking much about it.<p>React isn&#x27;t perfect by a long shot so I think something will eventually overtake it, but I hope it&#x27;s not magic HTML templates, that seems like a step back.