Open
Conversation
yujo11
reviewed
Nov 2, 2021
|
|
||
| <br> | ||
|
|
||
| JSX는 자바스크립트에 XML 문법을 추가해 쉽게 리액트 엘리먼트를 표현하도록 확장한 문법이다. |
Collaborator
There was a problem hiding this comment.
리액트가 아니더라도 Babel 등과 함께 JSX를 사용할 수 있는데 "리액트 엘리먼트를 표현"한다는게 적절한 정의일까요?
There was a problem hiding this comment.
유조님 말씀처럼 꼭 리액트 엘리먼트가 틀린말은 아니지만, 리액트에 한정된 설명이 JSX의 정체성보다 살짝 먼것같아요!
Collaborator
Author
There was a problem hiding this comment.
아! 저는 jsx 탄생이유가
리액트컴포넌트를 표현하기위해 태어난것인지,
xml문법을 자바스크립트에서 사용할 수 있도록 하기위해 태어난것인지에 대한 뉘앙스가 약간 다르게 느껴져서 그랬어요 ㅎㅎ
틀린말이 아니라! 제가 jsx와 리액트를 분리해서 생각하고 있어서 그랬던거 같아요!!
리액트라는 문맥안에서 @Tanney-102 님 말씀이 좀 더 자연스럽게 전달되는거같아요!
zereight
reviewed
Nov 2, 2021
| ``` | ||
| - 이때, 각 태그는 XML 문법이기에 사용자가 임의로 정의해 사용할 수 있다. 단, 기존 HTML 태그도 함께 지원한다. 이를 동시에 지원하는 방법은 다음과 같다. | ||
| - 태그의 첫 단어가 소문자로 시작한다면 이는 문자열로 해석된다. | ||
| - 태그의 첫 단어가 대문자로 시작한다면 이는 식별자로 해석된다. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.