News for hackers. Stuff that matters.
Re:Comparing Svelte and React by filoleg on Wednesday March 24, 2021 @06:37PM (#26573904)
>For that matter, you could also write:

>onMount(listenForAuthChanges)

>which is technically simpler -- you're not constructing a new anonymous function.

Not just technically simpler, it is a perf improvement over initializing an anonymous function every time onMount is called (which you have already mentioned, I just wanted to emphasize). A minor performance improvement at that, but still, small things add up. I agree with the entirety of your post, however, well-written.

There are no comments on this comment yet.