{/* */} to wrap around the comment text.
div element, without modifying the existing h1 or p elements.
JSX should return a div element.
testString: assert(JSX.type === 'div');
- text: The div should contain an h1 tag as the first element.
testString: assert(JSX.props.children[0].type === 'h1');
- text: The div should contain a p tag as the second element.
testString: assert(JSX.props.children[1].type === 'p');
- text: The existing h1 and p elements should not be modified.
testString: assert(JSX.props.children[0].props.children === 'This is a block of JSX' && JSX.props.children[1].props.children === 'Here\'s a subtitle');
- text: The JSX should use valid comment syntax.
testString: assert(/Here's a subtitle
Here's a subtitle