current path react 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