as my answer, clicked Submit, and the page just completely froze. I closed the tab and tried going back to the challenge but the tab keeps on freezing as soon as the challenge’s page loads. Please help.
@JPili I am also having the same problem. I cleared my cookies and was able to return to the page. As for the correct solution I am still working on that.
/* I was able to complete the challenge */
The description on the challenge was a bit misleading in my opinion. My code is below.
const ChildComponent = () => {
return (
<div>
<p>I am the child</p>
</div>
);
};
class ParentComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h1>I am the parent</h1>
{ /* change code below this line */ }
<ChildComponent />
{ /* change code above this line */ }
</div>
);
}
};
It apparently only needed a custom HTML tag that referenced the ‘ChildComponent’ component. I guess the ‘
’ tag that stated “I am the parent” referenced that only the ‘ChildComponent’ component was needed.
@vandao288 you are most welcome! I can confidently say that as the challenges progressed React got a lot more comfortable to work with. Best of luck with the rest of the challenges.