ESM Snippet Template

Explain what this does.

export async function emit(el) { el.innerHTML = `<h2>Hello, World!</h2>` } export async function bind(el) { window.parent.postMessage({ action: "resize", height: document.body.offsetHeight }, "*") }

In the frame below we can view the results.

//wiki.ralfbarkow.ch/assets/pages/snippet-template/esm.html