import { createApp } from "vue";
function renderComponent({ el, component, props, appContext }) {
  let app = createApp(component, props);
  Object.assign(app._context, appContext);
  app.config.warnHandler = () => null;
  app.mount(el);
  return () => {
    app == null ? void 0 : app.unmount();
    app = void 0;
  };
}
export {
  renderComponent as default
};
