title: how to 'redirect' with react after login with passport.js?
body: <p>Newbie react question: I’m using it with passport.js and express. I’m successfully logging in to the application. But I don't know how to do a redirect.</p>
  
  <pre><code>router.post('/login',
    passport.authenticate('local'),
    function(req, res) {
      // If this function gets called, authentication was successful.
      res.redirect('/upload'); //&lt;—— what I’d like to do is some kind of redirect here
  });
  </code></pre>
  
  <p>Any help appreciated.</p>