title: how to get current route in react-router-dom v4.2.2
body: <p>I want to get current route path in meteor based react project and I want to create login page externally..how can i do it? 
  this is my source code</p>
  
  <p>client/main.jsx</p>
  
  <pre><code>import React from "react";
  import {meteor} from "meteor/meteor";
  import {render} from "react-dom";
  import {
      BrowserRouter as Router,
      Route
  } from "react-router-dom"
  
  
  import "./main.css";
  import "../imports/ui/stylesheets/main.scss";
  
  import Main from "../imports/ui/Main";
  
  
  Meteor.startup(() =&gt; {
      return render((
          &lt;Router&gt;
              &lt;Main/&gt;
          &lt;/Router&gt;
      ), document.getElementById("app-root"));
  });
  </code></pre>
  
  <p>ui/main.jsx</p>
  
  <pre><code>import React, {Component} from "react";
  import Link, {withRouter} from "react-router-dom"
  import PropTypes from "prop-types";
  
  
  /*@import Templates*/
  import Sidebar from "./components/sidebar";
  
  class Main extends Component {
  
      render() {
  
          return (
              &lt;div className="container-fluid"&gt;
                  &lt;Sidebar/&gt;
                  //want current location path for here
              &lt;/div&gt;
          );
      }
  }
  
  
  export default Main;
  </code></pre>
  
  <p>Used versions:</p>
  
  <ul>
  <li>react v16.2.0</li>
  <li>react-router-dom v4.2.2</li>
  <li>react-router v4.2.0</li>
  </ul>