Link to dynamic active class?
|Added at||2017-01-02 14:01|
router for routing purpose in my react app.
Mine routing is defined in given manner:
and my navBar have following navigation:
but when visit page no. 2("/food/indian/2") of that component then myActive class of navBar is not showing. If there are any alternate method to solve this problem then it will be great.
PS: I don't want to put all conditions like because the app has more than 15 different cuisine