134
rated 0 times
[
140]
[
6]
/ answers: 1 / hits: 71160
/ 7 Years ago, thu, february 2, 2017, 12:00:00
I need a help with react-router v2+
I have to change class of navbar when route changed
for example for route /profile className
will be profile-header
I tried to use this.props.location
in navbar component but it shows undefined
Hope your help
More From » reactjs