Re:Comparing Svelte and React
by jugglebird on Wednesday March 31, 2021 @03:59PM
(#26652326)
That's a pretty reasonable argument and I believe a big part of what makes hooks somewhat complex since they look like regular Javascript but can behave differently.
So the developer must remember a new rule: "JS rules when calling foo.each(), Svelte rules when calling svelte.each()". A little harder to remember. Having a unique non-JS syntax makes the distinction obvious.
(Just playing Devil's Advocate here)