forwardRef((props, ref) => ( <button ref={ref} className="FancyButton"> {props.children} </button> )); // 你可以直接获取DOM button 的ref: ...
確定! 回上一頁