> The point is this small extension to JS grammar lets you do templating with normal JS, instead of #for you can use .forEach, .map and other array methods.
But then React is much more than just "small extension".
Hooks alone are less of a Javascript than any Svelte template syntax.
Those are all features of React or the React JSX transform, not JSX. Other JSX transforms or frameworks using them may or may not share any or all of them. (JSX is not only used in React.)
Ah. So we're comparing a specific templating language (Svelte) with an idealized and nonexistent version of JSX (JSX is a non-standard extension that has different flavors depending on what underlying framework, and versions of a framework, you use).
But then React is much more than just "small extension".
Hooks alone are less of a Javascript than any Svelte template syntax.