다른곳에서 오탈자를 발견해서 오류는 해결되었습니다.
안녕하세요 선생님!
컴포넌트를 만드는데 data.js에 코드를 작성하면
export default [
{...}, x3 ]
위 코드가 처음부터 끝까지 노란줄이 생겨요.
그래서 그런지 app.js에서 아래 코드 두 가지
1. shoes.map( (a,i)=>{
return <Card shoes={shoes[i]} i={i} key={i} />
} )
2. return(
<>
<img src={'https://codingapple1.github.io/shop/shoes{i}.jpg'} width="100%" alt='' />
<h4>{ props.shoes.title }</h4>
<p>{ props.shoes.content } / { props.shoes.price }</p>
</>
)
에서 shoes 개수, data.js의 title/component/price 다 인식하지 못하는 것 같습니다.
브라우저에서 아무것도 안떠요ㅜㅜ
어떤 것이 잘못된 걸까요..