Skip to content

리액트 assignment1 기완님 예시답안 jsx #560

Answered by ars-ki-00
Arsture asked this question in Q&A
Discussion options

You must be logged in to vote

엄밀히 따지고 보면, 아무런 차이도 없습니다.
리액트는 js의 라이브러리 중 하나일 뿐이므로, 어떠한 확장자를 사용하더라도 동일한 결과를 냅니다.

단, 클린 코드를 지향하기 때문에, plain javascript 가 아닌 jsx 는 .jsx 파일에 넣어 놨을 뿐이에요.
확장자만 보고도 이 파일이 컴포넌트인지 util인지를 구분하기 위함이었습니다.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by woohm402
Comment options

Arsture
Oct 5, 2021
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
React React 관련 내용 question 질문으로 사용될 이슈
2 participants
Converted from issue

This discussion was converted from issue #525 on October 07, 2021 14:43.