How to Use React Refs

How to utilise refs in React, with ref forwarding, callback refs and HOCs

Ross Bulat
9 min readApr 13, 2019

--

React Refs are a useful feature that act as a means to reference a DOM element or a class component from within a parent component. This then give us a means to read and modify that element.

Perhaps the best way to describe a ref is as a bridge; a bridge that allows a component…

--

--

Ross Bulat

Programmer and Author. @ Parity Technologies, JKRB Investments