javascript - How to access abstract current path in react-router v4 -
using react-router v4, how should go getting current abstract path. example, can access this.props.location
when using withrouter(...)
gives /students/19
, when want students/:id
etc. functionality desired logging tool.
how should accomplish this?
use this.props.match.path
. believe that's need.
Comments
Post a Comment