Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
Treat React Hooks for what it is – a separate programming language. Hooks happen to use JavaScript-y syntax and package mechanisms, but they ignore all the usual conventions around references and closures due to the implied re-rendering loop and are thus incompatible with the rest of the JavaScript ecosystem.
3 replies
3 recasts
26 reactions

Darryl Yeo đŸ› ïž pfp
Darryl Yeo đŸ› ïž
@darrylyeo
I like how as of Svelte 5, all rune-based reactivity outside of components must be contained within `.svelte.js` / `.svelte.ts` files. This lets you explicitly mark that something is written for a Svelte-based runtime while keeping compatibility with JavaScript import tooling. Would love to see this become a trend. https://svelte.dev/docs/svelte/svelte-js-files
0 reply
0 recast
6 reactions