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
<Route path="book/:bookId" component={BookContainer} onEnter={onBookLoad()}/>
I want to use the bookId
from path as function parameter for onBookLoad()
. Is it possible?