react-scroll-top-query

1.0.0 • Public • Published

react-router-scroll-top

npm Version Build Status

An easy and short-hand component based on the React Router Scroll Restoration Example.

Usage

import ScrollToTop from 'react-router-scroll-top'
 
const App = () => (
  <Router>
    <ScrollToTop>
      <App/>
    </ScrollToTop>
  </Router>
)
 
// or just render it bare anywhere you want, but just one :)
<ScrollToTop/>

How to install

If you use yarn

yarn add react-router-scroll-top

And if you use npm

npm install react-router-scroll-top --save

Readme

Keywords

none

Package Sidebar

Install

npm i react-scroll-top-query

Weekly Downloads

1

Version

1.0.0

License

ISC

Unpacked Size

11.3 kB

Total Files

13

Last publish

Collaborators

  • abedjaradat