UNPKG

@rbxts/pretty-react-hooks

Version:
14 lines (13 loc) 586 B
/// <reference types="react" /> /// <reference types="@rbxts/types" /> /// <reference types="@rbxts/types" /> import React from "@rbxts/react"; /** * Returns a function that can be used as a Hoarcekat story. This function will * mount the given component to the target instance and unmount it when the * story is unmounted. * @param TestComponent The component to mount. * @param options Optional options to pass to `withHookDetection`. * @returns A Hoarcekat story. */ export declare function hoarcekat(TestComponent: React.FunctionComponent): (target: Instance) => () => void;