Skip to content

Scroll to top on route change? #2019

@paOol

Description

@paOol

Trying to have the browser scroll to the top upon cliking a router . Curren't it is preserving the scroll position.

Could not find anywhere in the documentation.

my render looks something like this

React.render(
  <Router history={createBrowserHistory()} routes={routes} />,
  document.getElementById('root')
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions