svelte:element is out!

You can now create dynamically create different HTML elements within 1 line, rather than having to switch them via {#if} logic block.

Watch me talk about svelte:element here on YouTube:

Adding {@const} tag to {#if} block

{@const} tag has been out for a while, but it's limited to a few logic blocks.

Watch me live-coding working on the feature to add {@const} tag to {#if} block too: