forwardRef to obtain the ref passed to it, and then forward it to the DOM button that it renders: const FancyButton = React.forwardRef((props, ref) => ( <button ...
確定! 回上一頁