These docs are old and won’t be updated. Go to react.dev for the new React docs. These new documentation pages teach modern React and include live examples: Referencing Values with Refs Manipulating the DOM with Refs useRef forwardRef Refs provide a way to access DOM nodes or React elements created in the render method. In the typical React dataflow, props are the only way that parent components i
![Refs and the DOM – React](https://cdn-ak-scissors.b.st-hatena.com/image/square/b2c712cc98dd4b4358911c413bad77e850529eee/height=288;version=1;width=512/https%3A%2F%2Flegacy.reactjs.org%2Flogo-og.png)