title: You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports
body: <pre class="lang-js prettyprint-override"><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import { createStore } from 'redux';
  import  createHistory  from 'history/createBrowserHistory';
  import { Provider } from 'react-redux';
  import  ConnectedRouter  from 'react-router-redux';
  import { Route, Switch } from 'react-router';
  import Home from "./pages/Home";
  import Register from "./pages/Register";
  import CourseManagerDashboard from "./pages/CourseManagerDashboard";
  import CourseDetail from "./pages/CourseDetail";
  import App from './app/App';
  import LoginForm from './components/LoginForm';
  
  const store = createStore(
      state =&gt; state
  );
  const history = createHistory();
  
  ReactDOM.render((
      &lt;Provider store={store}&gt;
          &lt;ConnectedRouter history={history}&gt;
              &lt;Switch&gt;
                  &lt;Route name="home" exact path="/" component={Home} /&gt;
                  &lt;Route name="register" path="/register" component={Register} /&gt;
                  &lt;Route name="course-manager-dashboard" path="/course-manager-dashboard" component={CourseManagerDashboard} /&gt;
                  &lt;Route name="course-detail" path="/course-detail" component={CourseDetail} /&gt;
                  &lt;Route name="login" path="/login" component={LoginForm} /&gt;
                  &lt;Route path="/" component={App} /&gt;
              &lt;/Switch&gt;
          &lt;/ConnectedRouter&gt;
      &lt;/Provider&gt;
  ),document.getElementById('app'));
  </code></pre>
  
  <p>Getting below error :</p>
  
  <p>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, or you might have mixed up default and named imports.
  Unable to track where exactly the issue is.</p>