UNPKG

@beqa/unplugin-transform-react-slots

Version:

JSX to slot function transpilation plugin for some of the common build systems

7 lines (4 loc) 164 B
import * as React from "react"; import { useSlot } from "@beqa/react-slots"; const { slot } = useSlot(); <slot.default />; // should transform to slot.default();