useCallback()useCallback(함수, [검사값]) 검사값이 변경되었을 때에만 함수를 생성하는 Hook이다.함수를 memoize → 재사용하기 위해서 사용(랜더링 성능 최적화)검사값에 따른 랜더링 비교[] : 검사값이 비어있으므로, 최초 랜더링시에만 함수를 선언하고 이후 계속 재사용한다[number] : number 값이 변경되었을 때에만, 함수를 다시 선언사용 이유자식 컴포넌트에게 props로 함수를 전달할 때 사용 → 자식 컴포넌트의 불필요한 랜더링을 방지함수 변경이 없거나, 연산이 큰 함수를 최초에만 선언하기 위해서 사용 useEffect()사이드 이펙트를 방지하기 위해서 사용함상세 사례API Fetching : 컴포넌트 내에 axios를 선언해놓았는데, 해당 컴포넌트가 부모에 의해 계..
Getting Started | Next.jsWelcome to the Next.js documentation! If you're new to Next.js, we recommend starting with the learn course. The interactive course with quizzes will guide you through everything you need to know to use Next.js. If you have questions about anything related to Next.js, you're always welcome to ask our community on GitHub Discussions.https://nextjs.org/docs/getting-started..