문제
: 오류 - JS Bites: React hook is called in a function which is neither a React function or a custom React Hook
문제 해결
- React Hook을 사용하고 있다면 Functional Component는 반드시 "대문자" 로 시작해야 한다
- custom hook의 이름은 반드시 "소문자"로 시작해야한다.
'React' 카테고리의 다른 글
| [React, Spring Boot] Whitelabel Error Page문제 (0) | 2023.09.07 |
|---|---|
| [React, TypeScript] TradingView lightweight-charts 사용 (0) | 2023.09.07 |
| [React] cannot read properties of undefined (reading '컬럼명') 오류 (0) | 2023.09.07 |
| [React, Spring Boot] 파일 다운로드(Blob) (0) | 2023.09.07 |
| [React] Table 사용 시 주의 (0) | 2023.09.05 |