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.

11 lines 306 B
/** * 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 function createRef() { return { current: null, }; } //# sourceMappingURL=use-ref.js.map