Skip to content

Commit 848de7f

Browse files
authored
Update react-without-jsx.md
1 parent 71341ef commit 848de7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/docs/react-without-jsx.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ React를 사용할 때 JSX는 필수가 아닙니다. 빌드 환경에서 컴파
1010

1111
예를 들어 다음의 JSX로 작성된 코드는
1212

13-
```JavaScript
13+
```js
1414
class Hello extends React.Component {
1515
render() {
1616
return <div>Hello {this.props.toWhat}</div>;
@@ -25,7 +25,7 @@ ReactDOM.render(
2525

2626
아래처럼 JSX를 사용하지 않은 코드로 컴파일될 수 있습니다.
2727

28-
```JavaScript
28+
```js
2929
class Hello extends React.Component {
3030
render() {
3131
return React.createElement('div', null, `Hello ${this.props.toWhat}`);
@@ -44,7 +44,7 @@ JSX가 JavaScript로 변환되는 예시를 더 보고 싶다면 [the online Bab
4444

4545
`React.createElement`를 너무 많이 입력하는 것이 피곤하다면 짧은 변수에 할당하는 방법이 있습니다.
4646

47-
```JavaScript
47+
```js
4848
const e = React.createElement;
4949

5050
ReactDOM.render(
@@ -55,4 +55,4 @@ ReactDOM.render(
5555

5656
`React.createElement`를 짧은 변수에 할당하면 편리하게 JSX 없이 React를 사용할 수 있습니다.
5757

58-
더 간결한 구문을 제공하는 [`react-hyperscript`](https://github.com/mlmorg/react-hyperscript)[`hyperscript-helpers`](https://github.com/ohanhi/hyperscript-helpers) 같은 커뮤니티 프로젝트를 참고해도 좋습니다.
58+
더 간결한 구문을 제공하는 [`react-hyperscript`](https://github.com/mlmorg/react-hyperscript)[`hyperscript-helpers`](https://github.com/ohanhi/hyperscript-helpers) 같은 커뮤니티 프로젝트를 참고해도 좋습니다.

0 commit comments

Comments
 (0)