The React docs provides the following example for forwardRef
const FancyButton = React.forwardRef((props, ref) => (