Custom hooks and the ref object itself. You won't get a warning with code like this: function Comp() {. const logRef = React.useRef(console.log). React.
確定! 回上一頁