iframeComponent = function(container, componentState) {
container.on('resize', () => {
const iframe = container.getElement().get(0).childNodes[0];
iframe.width = container.width;
iframe.height = container.height;
});
const newChild = componentState.src
? html`<iframe src="${componentState.src}"</iframe>`
: html`<iframe srcdoc="<!DOCTYPE html><p>${componentState.label}</p>"></iframe>`;
container
.getElement()
.get(0)
.appendChild(newChild);
}