Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lh 393 creating a image #8

Merged
merged 3 commits into from
Apr 4, 2023
Merged

Lh 393 creating a image #8

merged 3 commits into from
Apr 4, 2023

Conversation

sgd122
Copy link
Contributor

@sgd122 sgd122 commented Apr 4, 2023

LH-393

수정한 내용

  • 이미지 컴포넌트 개발

추가적으로 알리고 싶은 내용

image

@sgd122 sgd122 requested a review from baegofda April 4, 2023 08:15
@sgd122 sgd122 self-assigned this Apr 4, 2023

/** 이미지 설명을 추가합니다. */
alt: string;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4: 태그에 기본적으로 들어가는 src, width, height, alt는 자동완성이 지원이 되니까 Props에서는 지우는게 어떨까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

width, height만 삭제하는걸로 소통완료

<img
ref={ref}
src={src}
alt={alt}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4: type Props부분과 동일하게 컴포넌트내의 props<img />태그에도 정리가 되면 좋을 것 같습니당

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인완료 :)

<img
src={
"data:image/gif;base64, iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mO8UA8AAiUBUcc3qzwAAAAASUVORK5CYII="
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P4: 로드시 노출되는 이미지에도 loading={lazy ? "lazy" : "eager"}가 있는게 좋을까용?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋아요~! ✅

@@ -0,0 +1,2 @@
export { Image } from "./Image";
export type { ImageProps } from "./Image";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: 이 부분은 혹시 로컬에서 에러가 안나오는 상황일까용? ImageProps는 Image.type에서 불러와야할 것 같습니다!

@sgd122 sgd122 merged commit 21fe1b3 into main Apr 4, 2023
@sgd122 sgd122 deleted the LH-393-creating-a-image branch April 4, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants