import cx from 'classnames';
import React, {Component} from "react";

export default
  class Main extends Component {
    render () {
      let {className} = this.props;
      return <div {...this.props} className={cx('main', className)}/>;
    }
  }

import cx from 'classnames';
import {Component, findDOMNode} from "react";

export default
  class Main extends Component {
    render () {
      let {className} = this.props;
      return <div {...this.props} className={cx('main', className)}/>;
    }

    componentDidUpdate() {
      findDOMNode(this).scrollTop = 0;
    }
  }

Reset scrollTop when change document
Reset scrollTop when change document
