Use useRef for information that must persist between renders but should not update the UI, such as a DOM node, timeout ID, or mutable external object.