useCallback 也是用于性能优化,它可以缓存函数,使组件重新渲染时得到相同的函数 ... import { useRef } from 'react' function App() { const box ...
確定! 回上一頁