I would like my <Link>
s to have an active
class when they match their route. Currently the resulting <a>
tag doesn't change, even when I'm on the route referenced by the link.
My links are created like this: <Link to="/status">STATUS</Link>
The routes:
<Router>
<Route path='/' component={App}>
<IndexRoute component={Status} />
<Route path='about' component={About}/>
<Route path='status' component={Status}/>
<Route path='settings' component={Settings}/>
</Route>
</Router>
Does this feature even exist? If so, what do I need to change for it to work.
PS: I'm using react-router with redux-router. I also use the default HashHistory because it's a nwjs
-app