import { Router, browserHistory } from 'react-router';
const router = <Router history={browserHistory} />;
One perk is that you can then navigate using the singleton if you want, e.g. with browserHistory.push('/foo');
The scroll behavior stuff is definitely messy; I haven't had time to clean it up. The nice thing about OSS, though, is that the rest of you are all free to contribute changes.