@mellunar The React example is not a valid component ;) Maybe you should write an actual simple component as you are pointing to difference between state management only. This is more fair to compare
<script>letname='world';</script><h1>Hello {name}!</h1><buttonon:click={()=> name = "Hi"}>click me</button>
A javascript function body is your script tag in Svelte the javascript return is your svelte file for markup, some people like programming some like XML style.
@mellunar The React example is not a valid component ;) Maybe you should write an actual simple component as you are pointing to difference between state management only. This is more fair to compare
vs
A javascript function body is your script tag in Svelte the javascript return is your svelte file for markup, some people like programming some like XML style.
Implying writing HTML isn't programming
Writing jsx is.
Im glad you feel superior for making your life harder 🤣
I'm sorry for you that your brain can't grasp it.