title: react - redux - router setup issues
body: <p>Can anyone help me figure out how to get this setup working. </p>
  
  <pre><code>import 'babel-polyfill';
      import React from 'react';
      import ReactDOM from "react-dom";
      import {Provider} from 'react-redux';
      import {createStore, applyMiddleware} from 'redux';
      import thunk from 'redux-thunk';
      import promise from 'redux-promise';
      import createLogger from 'redux-logger';
      import allReducers from './reducers';
      import App from './components/App';
      import createHistory from 'history/createBrowserHistory'
      import { Route } from 'react-router-dom'
      import { ConnectedRouter, routerMiddleware, push } from 'react-router-redux'
  
      const logger = createLogger();
  
      // Create a history of your choosing (we're using a browser history in this case)
      const history = createHistory()
  
      // Build the middleware for intercepting and dispatching navigation actions
      const middleware = routerMiddleware(history)
  
      // Add the reducer to your store on the `router` key
      // Also apply our middleware for navigating
      const store = createStore(
      allReducers,
      applyMiddleware(middleware, thunk, promise, logger)
      )
  
      ReactDOM.render(
          &lt;Provider store={store}&gt;
              &lt;ConnectedRouter history={history}&gt;
              &lt;div&gt;
                  &lt;Route exact path="/" component={App}/&gt;
              &lt;/div&gt;
              &lt;/ConnectedRouter&gt;
          &lt;/Provider&gt;,
          document.getElementById('root')
      );
  </code></pre>
  
  <p>I seem to be getting an error called. Warning: React.createElement: 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.</p>