import { render } from 'solid-js/web';
import AsciinemaPlayer from './components/AsciinemaPlayer';

if (window) {
  window.createAsciinemaPlayer = (props, elem) => {
    render(() => (<AsciinemaPlayer {...props} />), elem);
  }
}

import { render } from 'solid-js/web';
import AsciinemaPlayer from './components/AsciinemaPlayer';

if (window) {
  window.createAsciinemaPlayer = (props, elem) => {
    return render(() => (<AsciinemaPlayer {...props} />), elem);
  }
}

Return cleanup fn from createAsciinemaPlayer
Return cleanup fn from createAsciinemaPlayer
