cara menambahkan css berdasarkan rute bereaksi
// do something when clicking on route
function handler() {
// do something;
}
<Route path='/' component={App}>
<Route path="foo" component={Foo} onEnter={handler}/>
<Route path="life" component={Life} onEnter={handler}/>
</Route>
Caffeinated Developer