nuxt
Version:
[](https://nuxt.com)
15 lines (14 loc) • 347 B
JavaScript
import { defineComponent, h } from "vue";
import NuxtIsland from "#app/components/nuxt-island";
export const createServerComponent = (name) => {
return defineComponent({
name,
inheritAttrs: false,
setup(_props, { attrs, slots }) {
return () => h(NuxtIsland, {
name,
props: attrs
}, slots);
}
});
};