You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

484 B

title
forwardRef

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>
));