UNPKG

@matthewgapp/solidjs-flow

Version:

React Flow - A highly customizable React library for building node-based editors and interactive flow charts.

17 lines (13 loc) 301 B
export const useRef = <T>(initialValue: T): RefObject<T> => { return new RefObject(initialValue); } export class RefObject<T> { constructor(private _current: T) { } get current() { return this._current; } set current(value) { this._current = value; } }