-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Description
<Link to="/">Dashboard</Link>
<Link to="surveys">Surveys</Link>
ReactDOM.render((
<Router history={history}>
<Route component={App}>
<Route name="dashboard" path="/" component={Dashboard} />
<Route name="surveys" path="/surveys" component={Surveys} />
</Route>
</Router>
), document.getElementById('main'));
If I'm the dashboard route then just dashboard link gets active class. If I'm on surveys, dashboard and surveys link gets active class.
Pau1fitz, jeffpowrs, AndrejGajdos and DDChiang
Metadata
Metadata
Assignees
Labels
No labels