react get current path location in class component code example
Example: react current path
//Add your component to router
<Router path="/" component={Navigation} />
//Get your path
this.props.location.pathname
//Add your component to router
<Router path="/" component={Navigation} />
//Get your path
this.props.location.pathname