[Part2-2주차] 모듈, 모듈 내보내고 가져오기 - 김정대 #47
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📚 학습 주제
📝 학습 내용 체크리스트
✅ 개념 요약
🔍 모르는 개념 연구
💻 예시 코드 및 설명
📋 주요 학습 개념 설명/요약 (선택)
모듈 소개
https://github.com/daeya0406/TIL/blob/master/JavaScript/core/01.%EB%AA%A8%EB%93%88%EC%86%8C%EA%B0%9C.md
모듈 내보내기와 가져오기
https://github.com/daeya0406/TIL/blob/master/JavaScript/core/02.%EB%AA%A8%EB%93%88_%EB%82%B4%EB%B3%B4%EB%82%B4%EA%B8%B0%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0.md
❓ 질문사항 및 토론 포인트
CORS는 axios를 사용해도 header가 필요한지
모듈 가져올 때 as를 사용하다가 as 사용한 컴포넌트가 겹치면 어떻게 될지 / import나 export할 때 이름 바꾸는 경우가 있는지 / re-export를 굳이 할 필요가 있는지
=> 모두 API를 가지고 온다고 생각해보니 필요할 것 같다는 생각이 듦.
📖 참고 자료 (선택)