useState accepts a callback which you can use as an alternative (much more recommended) route: const dataRef = React.useRef(); const ...
確定! 回上一頁