UNPKG

@jay-js/system

Version:

A powerful and flexible TypeScript library for UI, state management, lazy loading, routing and managing draggable elements in modern web applications.

14 lines (13 loc) 391 B
/** * Represents a reference object holding a value of type T */ export type TRefObject<T> = { current: T | null; id?: string; }; /** * 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 createRef<T>(): TRefObject<T>;