From b08e572a6ddb9f0898f0436b1641d038f6ce2da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=85=E5=B0=98?= Date: Thu, 29 Sep 2022 11:16:32 +0800 Subject: [PATCH] docs: delete redundant English and serial numbers. In the introduction_jsx module, the content has been translated into Chinese, but there are still two documents in English. I deleted and corrected the serial number here. --- langs/zh-cn/tutorials/introduction_jsx/lesson.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/langs/zh-cn/tutorials/introduction_jsx/lesson.md b/langs/zh-cn/tutorials/introduction_jsx/lesson.md index a088bcb3..0d596925 100644 --- a/langs/zh-cn/tutorials/introduction_jsx/lesson.md +++ b/langs/zh-cn/tutorials/introduction_jsx/lesson.md @@ -2,15 +2,12 @@ 与其他一些使用 JSX 的框架不同,Solid 尝试尽可能对齐 HTML 标准,甚至允许简单的复制粘贴 Stack Overflow 上的答案或者设计师使用模板构建器生成的代码。 -There are 3 main differences between JSX and HTML that prevent JSX from being seen as a superset of HTML. - JSX 和 HTML 之间有 3 个主要区别,这也是 JSX 不能被视为 HTML 的超集的原因。 -1. JSX does not have void elements. This means that all elements must have a closing tag or self close. Keep this in mind when copying over things like `` or `
`. 1. JSX 没有 void 元素。这意味着所有元素都必须有一个结束标签或自关闭。在复制 `` 或 `
` 之类的内容时,请注意这一点。 -1. JSX 必须返回单个 Element。要表示多个顶级元素,请使用 Fragment 元素。 +2. JSX 必须返回单个 Element。要表示多个顶级元素,请使用 Fragment 元素。 ```jsx <>