We can create a custom hook that uses the useRef hook internally for storing the ... both current and previous count value return ( <div> <h1> Now: {count}, ...
確定! 回上一頁