React provides refs as an escape hatch to directly access DOM elements without using props or state. Refs are created by calling React.createRef() and attached to elements via the ref attribute. This allows accessing and manipulating the DOM element associated with the ref. However, refs should generally be avoided when possible, as directly manipulating the DOM breaks the React data flow. Instead, prefer using state and props to update the DOM indirectly.