-
Notifications
You must be signed in to change notification settings - Fork 16
[2주차] jsx #151
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
base: Tanney-102
Are you sure you want to change the base?
[2주차] jsx #151
Conversation
|
|
||
| <br> | ||
|
|
||
| JSX는 자바스크립트에 XML 문법을 추가해 쉽게 리액트 엘리먼트를 표현하도록 확장한 문법이다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
리액트가 아니더라도 Babel 등과 함께 JSX를 사용할 수 있는데 "리액트 엘리먼트를 표현"한다는게 적절한 정의일까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
유조님 말씀처럼 꼭 리액트 엘리먼트가 틀린말은 아니지만, 리액트에 한정된 설명이 JSX의 정체성보다 살짝 먼것같아요!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아! 저는 jsx 탄생이유가
리액트컴포넌트를 표현하기위해 태어난것인지,
xml문법을 자바스크립트에서 사용할 수 있도록 하기위해 태어난것인지에 대한 뉘앙스가 약간 다르게 느껴져서 그랬어요 ㅎㅎ
틀린말이 아니라! 제가 jsx와 리액트를 분리해서 생각하고 있어서 그랬던거 같아요!!
리액트라는 문맥안에서 @Tanney-102 님 말씀이 좀 더 자연스럽게 전달되는거같아요!
| ``` | ||
| - 이때, 각 태그는 XML 문법이기에 사용자가 임의로 정의해 사용할 수 있다. 단, 기존 HTML 태그도 함께 지원한다. 이를 동시에 지원하는 방법은 다음과 같다. | ||
| - 태그의 첫 단어가 소문자로 시작한다면 이는 문자열로 해석된다. | ||
| - 태그의 첫 단어가 대문자로 시작한다면 이는 식별자로 해석된다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💚
No description provided.