import { useRouterHistory, hashHistory } from 'react-router'
// useRouterHistory creates a composable higher-order function
const appHistory = useRouterHistory(hashHistory)({ queryKey: false })
<Router history={appHistory}/>
if i wanted to change the scroll behavior of router, then i'd have to do something like this: import useScroll from 'scroll-behavior/lib/useStandardScroll'
const appHistory = useScroll(useRouterHistory(hashHistory))({ queryKey: false })
how does this make using router/history any clearer?i LIKE react-router, i think it's pretty damn good, but I just don't understand the rationale for their API choices. combine that with the velocity at which they're changing the APIs, it makes me wish that they'd just take their time with the design