@jay-js/ui
Version:
A library of UI components for Jay JS with Tailwind CSS and daisyUI.
11 lines (10 loc) • 371 B
TypeScript
/**
* Represents a reference object holding a value of type T
*/ export type TRefObject<T> = {
current: T | null;
};
/**
* Creates a mutable reference object that persists across renders
* @template T The type of value the reference will hold
* @returns A reference object with a mutable .current property
*/ export declare function useRef<T>(): TRefObject<T>;