<script>
  const tag = "div";
  export let foo;
</script>

<svelte:element this={tag} bind:this={foo}></svelte:element>
