$chiubaca / notes / fleeting / 2021-12-30
  • Starting to get to grips with the ergonomics of svelte. Using custom template syntax feels odd after using jsx so much, but the syntax is intuitive enough.

  • custom use action directives are powerful - https://svelte.dev/docs#template-syntax-element-directives-use-action

    • This remove the need to bind an element to ref then pass it to a third party lib. I like how it has handles for updating and destrying an element.

    Should any elements that are fed into a third party lib use use directives?

  • found a nice svg plugin for svelte - https://github.com/poppa/sveltekit-svg

Edit on GitHub ✏️

Hey I'm Alex Chiu 👋. These are my notes for literally anything.

I'm using the Zettelkasten method to organise my thoughts here.

My more polished writings are published to my main blog at chiubaca.com

Follow me on: Github / X (Twitter) / Mastodon / LinkedIn