Https://www.freecodecamp.org/learn/front-end-libraries/react/write-a-react-component-from-scratch

Tell us what’s happening:

Your code so far


// change code below this line

class MyComponent extends React.Component {
constructor(props) {
  super(props);
}
ReactDOM.render() {
  return (
    <div id="challenge-node">
<h1>My First React Component!</h1>
</div>
  );
}
};

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36.

Challenge: Write a React Component from Scratch

Link to the challenge:

---> ReactDOM.render() {

should be just:

render(){

And in the end, you need to render that created component to the dom:

React.render(<mycomponent/>, document.getElementById('root'))