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

Jiwon #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Jiwon #2

wants to merge 5 commits into from

Conversation

wjdwl002
Copy link

뭔가 모종의 이유로 img 태그가 사진을 못불러오는데, 그 전까지의 기본적인 vanilla js 앱 컴포넌트를 만들어보았습니다.
바닐라로 클래스형 컴포넌트를 만드는거보는게 처음인데 재밌네요

Copy link
Contributor

@bluejoyq bluejoyq left a comment

Choose a reason for hiding this comment

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

패키지 설정 관련 심각한 문제 발견

Copy link
Contributor

Choose a reason for hiding this comment

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

전체 package.json을 날리면 어떡해요!!
이러면 동작이 제대로 안됩니다....

Copy link
Author

Choose a reason for hiding this comment

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

ㅈ..죄송합니다 ......... 모노레포는 처음이라 아무거나 만졌더니 ㅜㅜ

Copy link
Author

Choose a reason for hiding this comment

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

root 에 package.json 만 롤백하면 되는건가요..?

Copy link
Contributor

Choose a reason for hiding this comment

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

네 일단 그거 바꿔주시면 월요일에 볼게요 ㅎㅎㅎ 바빠서

Copy link
Contributor

Choose a reason for hiding this comment

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

아직 완성되진 않았네요.
모든 컴포넌트에서 공통적으로 사용되는 함수에 대해서 분리한 부분이 참 좋은 것 같아요

this.render()
return this;
}
setup(){}
Copy link
Contributor

Choose a reason for hiding this comment

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

이름이 set으로 시작하는 것 보다는 다른게 좋을 것 같아요.
setstate랑 헷갈림.
밑의 setEvent도 마찬가지에요!!

`
}
async fetchPhotos () {
const result = await fetch('/api/photos');
Copy link
Contributor

Choose a reason for hiding this comment

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

이 부분 같은 경우 컴포넌트에서 다룰 부분이 아닌 것 같아요. 별도의 adapter와 port로 작성하는게 좋을 것 같네요(혹은 repository).

Copy link
Contributor

@bluejoyq bluejoyq left a comment

Choose a reason for hiding this comment

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

하나의 기능에 대한 리뷰

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