Tell us what’s happening:
It’s not passing the tests… Saying that I don’t have an h1.
Your code so far
jsx
// change code below this line
class MyComponent extends React.Component{
constructor(){
super();
render()
return(
<h1>My First React Component!</h1>
)
}
}
ReactDOM.render(<h1/>,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/77.0.3865.120 Safari/537.36
.
Challenge: Write a React Component from Scratch
Link to the challenge:
https://www.freecodecamp.org/learn/front-end-libraries/react/write-a-react-component-from-scratch