File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
id : faq-build
3
- title : Babel, JSX, and Build Steps
3
+ title : Babel, JSX 及构建过程
4
4
permalink : docs/faq-build.html
5
5
layout : docs
6
6
category : FAQ
7
7
---
8
8
9
- ### Do I need to use JSX with React? {#do-i-need-to-use-jsx-with-react}
9
+ ### 必须在 React 中使用 JSX 吗? {#do-i-need-to-use-jsx-with-react}
10
10
11
- No! Check out [ "React Without JSX" ] ( /docs/react-without-jsx.html ) to learn more.
11
+ 不是必须的!请查阅 [ “不使用 JSX” ] ( /docs/react-without-jsx.html ) 以了解更多信息。
12
12
13
- ### Do I need to use ES6 (+) with React? {#do-i-need-to-use-es6--with-react}
13
+ ### 必须在 React 中使用 ES6 (+) 吗? {#do-i-need-to-use-es6--with-react}
14
14
15
- No! Check out [ "React Without ES6" ] ( /docs/react-without-es6.html ) to learn more.
15
+ 不是必须的!请查阅 [ “不使用 ES6” ] ( /docs/react-without-es6.html ) 以了解更多信息。
16
16
17
- ### How can I write comments in JSX? {#how-can-i-write-comments-in-jsx}
17
+ ### 怎样才能在 JSX 中编写注释? {#how-can-i-write-comments-in-jsx}
18
18
19
19
``` jsx
20
20
< div>
21
- {/* Comment goes here */ }
21
+ {/* 注释写在这里 */ }
22
22
Hello, {name}!
23
23
< / div>
24
24
```
25
25
26
26
``` jsx
27
27
< div>
28
- {/* It also works
29
- for multi-line comments. */ }
28
+ {/* 多行注释
29
+ 也同样有效。 */ }
30
30
Hello, {name}!
31
31
< / div>
32
32
```
You can’t perform that action at this time.
0 commit comments