Scroll behaviors for use with [react-router](https://github.com/reactjs/react-router). Based on [scroll-behavior](https://github.com/taion/scroll-behavior).
npm install react-router-scroll-behaviorScroll behaviors for use with react-router. Based on scroll-behavior.
What's the problem of scroll-behavior?
scroll-behavior and react-router are all rely on history and listen the location change. But react-router route components by using setState which is asynchronous. So that scroll behaviors may happen before routing finished.
```
$ npm i react-router-scroll-behavior --save
`javascript
import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory } from 'react-router'
import { RouterScrollContext } from 'react-router-scroll-behavior'
// Render Router with RouterScrollContext``
render((
...routes
), dest)