title: How to pass props(method) with Redirect component
body: <p>I know how to pass state to redirect component like below. </p>
  
  <pre><code>&lt;Redirect
      to={{
        pathname: "/login",
        state: { isLoggedIn: this.state.isLoggedIn }
      }}
   /&gt;
  </code></pre>
  
  <p>However, I can't find well the way how to pass method to redirect component.  What I want is to pass a method (handleLogin) to redirect component like below. Could you please give some help?</p>
  
  <pre><code>&lt;Redirect
      to={{
          pathname: "/login",
          state: { handleLogin: this.handleLogin }
       }}
   /&gt;
  </code></pre>