{/* */}来包含注释文本。 div元素中的某处添加注释,而不修改现有的h1或p元素。 JSX应该返回一个div元素。
testString: 'assert(JSX.type === "div", "The constant JSX should return a div element.");'
- text: div应包含一个h1标记作为第一个元素。
testString: 'assert(JSX.props.children[0].type === "h1", "The div should contain an h1 tag as the first element.");'
- text: div应该包含一个p标签作为第二个元素。
testString: 'assert(JSX.props.children[1].type === "p", "The div should contain a p tag as the second element.");'
- text: JSX应该包含一条评论。
testString: 'getUserInput => assert(getUserInput("index").includes("/*") && getUserInput("index").includes("*/"), "The JSX should include a comment.");'
```
Here's a subtitle