-
React component names must start with an uppercase letter react-hooks/rules-of-hooks프로그래밍 지식/Web 2022. 8. 1. 23:32
React hook is called in a function which is neither a React function or a custom React Hook
React Hook "useState" is called in function "컴포넌트 이름" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter react-hooks/rules-of-hooks
다음과 같은 에러는 export 하는 컴포넌트의 첫 글자를 대문자로 바꿔주면 된다.
// WRONG export default noticeController // RIGHT export default NoticeController
'프로그래밍 지식 > Web' 카테고리의 다른 글
HTML? HTTP? (+ HTTP의 특징) (0) 2022.03.13 '얄팍한 코딩사전 - 아파치, NginX, 톰캣이 뭔가요?' 요약 (0) 2022.03.09