💻[Error/React] img elements must have an alt prop, either with meaningful text, or an empty string for decorative images jsx-a11y/alt-text

- React에서
<img />
태그 사용 시 alt
속성을 추가하지 않으면 발생하는 에러
(eslint 에러)
📝에러해결
간단하다.
<img />
태그에 alt 속성을 추가하자
👉🏻 alt 속성?
- 이미지의 내용을 간결하게 표현한 문자열
- 웹 표준 상 alt를 사용해주는 것이 규칙이지만 생략해도 무관함
- 사용방법 :
<img="url 또는 props" alt="사진설명">

👉🏻 alt 속성으로 alt="attachment"
를 입력해줬음