HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🗂️
React, Hook 들어오네!?
/
😊
회의록
/
📫
useCallback
/자료조사/
[혜윤님]

[혜윤님]

callback 설명 (함수 재사용, 매번 함수 생성 되는 것 막기) 사용법 개선하기 전 코드 , callback으로 개선한 코드 → devtools로 개선된 것 확인
useCallback
useCallback is a React Hook that lets you cache a function definition between re-renders. Call useCallback at the top level of your component to cache a function definition between re-renders: See more examples below. Parameters fn: The function value that you want to cache. It can take any arguments and return any values.
useCallback
https://beta.reactjs.org/reference/react/useCallback
useCallback