title: Accept POST request in react-router
body: <p>My react-router is version 4.2.0</p>
  
  <p>I'm trying to accept a POST request to my React application.  I may be blind, but I'm unable to find a way to specify a request method (GET, POST) on my routes.</p>
  
  <p>How can I set this up to accept POST requests?</p>
  
  <pre><code>render((
      &lt;BrowserRouter&gt;
        &lt;div&gt;
          &lt;Route exact path="/" history={history} render={() =&gt; (
              loggedIn() 
                  ? (&lt;MyApp /&gt;)
                  : (&lt;Redirect to="/login"/&gt;)
          )}/&gt;
          &lt;Route exact path="/login" history={history}  render={() =&gt; (
              loggedIn() 
                  ? (&lt;Redirect to="/"/&gt;)
                  : (&lt;Login /&gt;)
          )}/&gt;
        &lt;/div&gt;
      &lt;/BrowserRouter&gt;
  ), document.getElementById('app'));
  </code></pre>
  
  <p>Ideally, I would like to have a 3rd route that accepts a POST request to process the POST from a vendor.</p>
  
  <p>I found <a href="https://www.npmjs.com/package/express-react-router" rel="nofollow noreferrer">express-react-router</a> but was unable to locate/install the "express-location" package.</p>
  
  <p>Any help would be appreciated.</p>