@jay-js/ui
Version:
A library of UI components for Jay JS with Tailwind CSS and daisyUI.
12 lines (11 loc) • 334 B
JavaScript
/**
* Represents a reference object holding a value of type T
*/ /**
* 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 useRef() {
return {
current: null
};
}