Under Construction

This section is incomplete, please see the old docs for forwardRef.

React.forwardRef creates a React component that forwards the ref attribute it receives to another component below in the tree.

const FancyButton = React.forwardRef((props, ref) => (
  <button ref={ref} className="FancyButton">
    {props.children}
  </button>
));