Tell us what’s happening:
I’ve tried with and without the </> part of MyComponent but it just keeps giving me errors n.render or c.render not being a function!
Your code so far
// change code below this line
class MyComponent extends React.Component {
constructor(props) {
super(props);
}
return () {
<div>
<h1>My First React Component!</h1>
</div>
}
};
ReactDOM.render(<MyComponent />, document.getElementById('challenge-node'));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36
.