<script>
  import { createEventDispatcher } from "svelte";
  let dispatch = createEventDispatcher();
  const pulsar = () => {
    dispatch("pulsado");
  };
</script>

<button type="button" on:click={pulsar}>Púlsame</button>
