forwardRef 来获取传递给它的 ref , 然后将其转发给它渲染的的DOM button :. const FancyButton = React.forwardRef((props, ref) => ( <button ref={ref} ...
確定! 回上一頁