News for hackers. Stuff that matters.
Re:Rich Harris joins Vercel to work on Svelte full time by Aeolun on Saturday November 13, 2021 @03:14AM (#29208285)
They are definitely javascript. I can click to definition of the useEffect function and see exactly what it is doing.

I completely agree that learning them is a bit crazy, but ultimately every hook comes down to being a function execution.

Re:Rich Harris joins Vercel to work on Svelte full time by dmitriid on Saturday November 13, 2021 @02:35PM (#29212539)
> They are definitely javascript.

How come they break Javascript semantics and execution flow?

> but ultimately every hook comes down to being a function execution.

That's really beside the point when it comes to understand what something is and using them.

{#await promise} is immediately understandable from its use.

Hooks are... well, I already said above.

Re:Rich Harris joins Vercel to work on Svelte full time by merb on Sunday November 14, 2021 @03:45PM (#29220490)
> How come they break Javascript semantics and execution flow?

wait what? since when do they break execution flow and javascript semantics?!

useEffect(function () { }); when exactly do you think the function will be called? - correct only the "framework" defines that, but that's completly normal javascript execution and semantic.