Created by createRef, or useRef when passed null.
null
const ref = createRef<HTMLDivElement>();ref.current = document.createElement('div'); // Error Copy
const ref = createRef<HTMLDivElement>();ref.current = document.createElement('div'); // Error
The type of the ref's value.
The current value of the ref.
Created by createRef, or useRef when passed
null.Example