const prevCount = usePrevious(count);. 4. return <h1>Now: {count}, before: {prevCount}</h1>;. 5. } 6. . 7. function usePrevious(value) {.
確定! 回上一頁