how to find the current path of component in react js 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