@rbxts/pretty-react-hooks
Version:
Useful hooks for @rbxts/react
11 lines (10 loc) • 476 B
TypeScript
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;