Not sure what you are asking, but your quoted code results in the word “return” showing between h1 and h2. It still passes the test but logically the word shouldn’t be there.
const Fruits = () => {
return (
<div>
{ /* Change code below this line */ }
return <TypesOfFruit />
{ /* Change code above this line */ }
</div>
);
};
You don’t need the return before <TypesOfFruit />.
I edited your post. It didn’t make much sense without the component code visible.
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.