React.useRef() provides access to DOM elements programatically. You can use them to focus an input after you render it conditionally, for example. The rendering phase needs to be finished in order to access ref's current property.
  • null