A readonly ref container where current cannot be mutated.
Created by createRef, or useRef when passed null.
null
const ref = createRef<HTMLDivElement>();ref.current = document.createElement('div'); // Error
The type of the ref's value.
Readonly
The current value of the ref.
Generated using TypeDoc
A readonly ref container where current cannot be mutated.
Created by createRef, or useRef when passed
null
.Example