[Error Note] React component names must start with an uppercase letter

React Hook "useEffect" is called in function "saleContent" that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word "use"

 

 

 

컴포넌트 이름의 시작을 대문자로 지정하지 않아서 생긴 간단한 오류.

67번째 줄과 컴포넌트 호출해주는 부분을 saleContent 에서 SaleContent로 변경하여 해결.

function을 만들 때 lower camel case가 익숙해서 생긴 실수이며, 지금 만드는 것이 함수인지 컴포넌트인지에 주의할 것.