REACTJS :write a React Component from scratch


note:Below is my answer to the exercise but I am some how still getting it wrong…

// change code below this line

class MyComponent extends React.render{

render() { 

    <h1> My First React Component!</h1>
ReactDOM.render(<MyComponent />,document.getElementById('challenge-node'))


I haven’t written a class component in a while but is extends react.render correct? Or should it extend react.classcomponent? I’m honestly not sure

Thanks for the response .let me go through it completely.

It should actually read React.Component at the end.Like so; class MyComponent extends React.Component.
Thanks for opening my mind.