title: JSX element type 'Route' does not have any construct or call signatures
body: <p>I'm replacing code from javascript to typescript. But, fail building.<br>
  - <code>JSX element type 'Router' does not have any construct or call signatures.</code><br>
  - <code>JSX element type 'Switch' does not have any construct or call signatures.</code><br>
  - <code>JSX element type 'Route' does not have any construct or call signatures.</code></p>
  
  <p>How do I fix this error?</p>
  
  <p>wrong code</p>
  
  <pre><code>import * as React from 'react';
  import * as ReactDOM from 'react-dom';
  import { Router, Switch, Route } from 'react-router';
  import { Provider } from 'react-redux';
  import createBrowserHistory from 'history/createBrowserHistory';
  
  import Counter from './containers/Container';
  import store from './stores/store';
  import NotFound from './components/NotFound';
  
  
  const history = createBrowserHistory();
  
  ReactDOM.render(
    &lt;Provider store={store}&gt;
      &lt;Router history={history}&gt;
        &lt;Switch&gt;
          &lt;Route exact path="/counter" component={Counter} /&gt;
          &lt;Route path="/counter/:id" component={Counter} /&gt;
          &lt;Route component={NotFound}/&gt;
        &lt;/Switch&gt;
      &lt;/Router&gt;
    &lt;/Provider&gt;
    , document.getElementById('app')
  );
  </code></pre>
  
  <p>and same error occurred when I used <code>import { Route } from 'react-router-dom';</code> .</p>