You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in. #9249
Do you want to request a feature or report a bug?
I think this is most probably is a Bug
index.js:946 Uncaught Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in.
How ever i have exported All component properly
// Forms.js
import React from 'react'
import ReactDOM from 'react-dom';
export default class App extends React.Component{
render(){
return (
<div>
<ul>
<li>Home</li>
</ul>
{this.props.children}
</div>
);
}
}
export class Home extends React.Component{
render(){
return (
<div>
<h1>Home...</h1>
</div>
)
}
}