export const useRef = (initialValue: T): RefObject => { return new RefObject(initialValue); } export class RefObject { constructor(private _current: T) { } get current() { return this._current; } set current(value) { this._current = value; } }