I want to do a fetch using the onEnter callback, but I don\'t know how to read a URL param in the Route component. I have this Route
Nevermind, it was trivial.
<Route path="book/:bookId" component={BookContainer} onEnter={onBookLoad}/> export function onBookLoad(nextState) { console.log(nextState.params.bookId); //do stuff with the param }