useRef<T> function
Creates an object that contains a single mutable property.
Mutating the object's property has no effect.This is useful for sharing state acrossbuild
calls, without causingunnecessary rebuilds.
Implementation
ObjectRef<T> useRef<T>(T initialValue) { return useMemoized(() => ObjectRef<T>(initialValue));}