Tell us what’s happening:
Greatings fellow campers. Hope you are all good and well
i am trying to solve this challenge but when i click run the test button the entire website froze up and i cant do until i refresh the page. What could be wrong to my answer?
Your code so far
class TypesOfFood extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div>
<h1>Types of Food:</h1>
{/* change code below this line */}
<Fruits/>
<Vegetables/>
ReactDOM.render(<TypesOfFood />, document.getElementById ('challenge-node')
{/* change code above this line */}
</div>
);
}
};
// change code below this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/render-a-class-component-to-the-dom/