UNPKG

@beqa/unplugin-transform-react-slots

Version:

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

14 lines (9 loc) 266 B
/** Should not transform slot.default */ // Line comment before pragma is ok // @disable-transform-react-slots // @ts-ignore import * as React from "react"; // @ts-ignore import { useSlot } from "@beqa/react-slots"; const { slot } = useSlot(); <slot.default />;