title: React Router 4 with Typescript, Redirect
body: <p>I tried to write some routing in my app using typescript, but I have a problem with redirect component. This is my code:</p>
  
  <pre><code>export interface Props {
  
  }
  
  const Routes = (props:Props) =&gt; (
  &lt;Switch&gt;
      &lt;Route path="/login" component={Login}/&gt;
      &lt;Route path="/" component={Home}/&gt;
  
      &lt;Redirect   to="/login" component={Login}/&gt;
  
  &lt;/Switch&gt;
  );
  
  export default Routes;
  </code></pre>
  
  <p>Then, the compiler throws the following error:</p>
  
  <blockquote>
    <p>(20,33): error TS2339: Property 'component' does not exist on type 'IntrinsicAttributes &amp; IntrinsicClassAttributes &amp; Readonly&lt;{ children?: ReactNode; }> &amp; ...'.</p>
  </blockquote>
  
  <p>Could you tell me where is the problem or how can I do the redirection when url is not compare with my router ?</p>