title: Element type is invalid on routes react-router-redux
body: <p>I got the following error when I try to add routes on my app and I dont know what Im doing wrong, I tried to follow the doc guide</p>
  
  <blockquote>
    <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.</p>
    
    <p>Check the render method of <code>AppRoutes</code>.</p>
  </blockquote>
  
  <pre><code>import React from 'react';
  import { ConnectedRouter } from 'react-router-redux';
  import { Route, Switch } from 'react-router-dom';
  
  import SignUp from '../../screens/SignUp';
  
  import { history } from '../../../redux/store';
  
  function AppRoutes() {
    return (
      &lt;ConnectedRouter history={history}&gt;
        &lt;Switch&gt;
          &lt;Route path="/login" component={SignUp} /&gt;
          &lt;Route exact path="/" component={SignUp} /&gt;
        &lt;/Switch&gt;
      &lt;/ConnectedRouter&gt;
    );
  }
  
  export default AppRoutes;
  </code></pre>