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