Question : how to reassign ref useRef react
Answered by : ira-sanchez
// irasanchez.com
const yourRef = useRef(/*original value here*/)
// when you need to update it later
yourRef.current = /*new value here*/
Source : | Last Update : Wed, 14 Sep 22