Skip to content
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

[Beta] docs(cn): add writing-markup-with-jsx #673

Merged
merged 21 commits into from
May 27, 2022
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b58736c
[Beta] docs(cn): add writing-markup-with-jsx
songhn233 Nov 24, 2021
c8f84c9
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
4cc0e10
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
83f9207
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
88a0f0c
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
06b685a
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
5479381
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
2905015
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
8337bc3
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
e44657b
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
c3e23be
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
5c8a04c
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
2e01044
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Dec 6, 2021
542053c
Update writing-markup-with-jsx.md
songhn233 Dec 7, 2021
66d22e6
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Feb 8, 2022
a558b62
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Feb 8, 2022
fbdd32c
Update beta/src/pages/learn/writing-markup-with-jsx.md
songhn233 Feb 8, 2022
efab232
Merge branch 'main' into beta-writing-with-jsx
QC-L May 27, 2022
2d06840
Update beta/src/pages/learn/writing-markup-with-jsx.md
QC-L May 27, 2022
9e73dd1
Update beta/src/pages/learn/writing-markup-with-jsx.md
QC-L May 27, 2022
fb17905
Apply suggestions from code review
QC-L May 27, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update beta/src/pages/learn/writing-markup-with-jsx.md
Co-authored-by: 511 <fqd511@163.com>
songhn233 and fqd511 authored Dec 6, 2021
commit 06b685a511d4083b145d046ea74c07a0731e931d
2 changes: 1 addition & 1 deletion beta/src/pages/learn/writing-markup-with-jsx.md
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@ JSX 虽然看起来很像 HTML,但在底层其实被转化为了 JavaScript

</DeepDive>

### 2. 标签必须闭合
### 2. 标签必须闭合 {/*2-close-all-the-tags*/}

JSX 要求标签必须正确闭合。像 `<img>` 这样的自闭合标签必须书写成 `<img />`,而像 `<li>oranges` 这样只有开始标签的元素必须带有闭合标签,需要改为 `<li>oranges</li>`。