import React from 'react';
class Home extends React.Component {
render() {
return <h1>Hello !</h1>;
}
}
export default Home;
Console error:
Warning: React.createElement: type should not be null, undefined, boolean, or number. It should be a string (for DOM elements) or a ReactClass (for composite components)
Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.