Tell us what’s happening:
I’m working on the challenge and feel that the code is correct. However, I keep getting an error stating that the Target Container is not a DOM Element. I’ve compared it to an earlier hint to make sure I have the syntax written correctly. Though I’m still running into the error.
Your code so far
// change code below this line
class MyComponent extends React.Component{
constructor(props){
super(props);
}
render(){
return(
<div>
<h1>My First React Component!</h1>
</div>
);
}
}
ReactDOM.render(<MyComponent />,'challenge-node')
// ReactDOM.render(<TypesOfVehicles />,'node-id')
// class TypesOfVehicles extends React.Component {
// constructor(props) {
// super(props);
// }
// render() {
// return (
// <div>
// <h1>Types of Vehicles:</h1>
// <Car />
// <Motorcycle />
// </div>
// );
// }
// }
// ReactDOM.render(<TypesOfVehicles />,'node-id')
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.90 Safari/537.36
.
Link to the challenge: