React - Create a React Component challenge. (this is also not working)
Challenge:
_MyComponent is defined in the code editor using class syntax. Finish writing the render method so it returns a div element that contains an h1 with the text Hello React!
._
Code:
class MyComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
// change code below this line
return(
<div>
<h1>Hello React!</h1>
</div>
);
// change code above this line
}
};
// running test
Enzyme Internal Error: unknown composite type undefined
Enzyme Internal Error: unknown composite type undefined
Enzyme Internal Error: unknown composite type undefined
// tests completed