Post
So `ref` in React 19 is a Svelte's `bind:this={el}` and actions `use:myAction={options}` combined? • svelte.dev/docs/svelte/... • svelte.dev/docs/svelte/... Adhoc `use:` actions in Svelte could be nice, but adding a function in `<script>` isn't terrible, and typically these are reusable.
svelte.devuse: • Docs • Svelteuse: • Svelte documentation
For examples of some Svelte actions, see `@layerstack/svelte-actions` www.layerstack.dev/docs/svelte-... Being able to pass options to Svelte actions is nice `<use:myAction={options}>`, and I guess the same could be accomplished with currying functions in React 19.
layerstack.devLayerStack
0 reposts1 like
No replies yet.