{/* */}
para envolver el texto del comentario. div
proporcionado, sin modificar los elementos h1
o p
existentes. JSX
debe devolver un elemento div
.
testString: 'assert(JSX.type === "div", "The constant JSX
should return a div
element.");'
- text: El div
debe contener una etiqueta h1
como el primer elemento.
testString: 'assert(JSX.props.children[0].type === "h1", "The div
should contain an h1
tag as the first element.");'
- text: El div
debe contener una etiqueta p
como el segundo elemento.
testString: 'assert(JSX.props.children[1].type === "p", "The div
should contain a p
tag as the second element.");'
- text: El JSX
debe incluir un comentario.
testString: 'getUserInput => assert(getUserInput("index").includes("/*") && getUserInput("index").includes("*/"), "The JSX
should include a comment.");'
```
Here's a subtitle