front-end-libraries/react/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{
constructor(props){
super(props);
}
render() {
return(
<div>
<h1> My First React Component!</h1>
</div>
);
ReactDOM.render(<MyComponent />,document.getElementById('challenge-node'))
}
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~