Refs are used to get reference to a DOM node or an instance of a component. They help to access the DOM nodes or React elements created in the render method. You can also use refs When you want a component to “remember” some information, but you don’t want that information to trigger new renders, you can use a ref.