Use1 useCallback useCallback은 리렌더링 사이에 함수 정의를 캐시할 수 있게 해주는 React Hook이다. const cachedFn = useCallback(fn, dependencies) Parameters fn : The function value that you want to cache. On next renders, React will give you the same function again if the dependencies have not changed since the last render. dependencies : The list of all reactive values referenced inside of the fn code. Reactive values include props, sta.. 2023. 8. 8. 이전 1 다음