1.0.24 • Published 5 years ago

@yarrgh/react-scroll-memory v1.0.24

Weekly downloads
85
License
MIT
Repository
github
Last release
5 years ago

@yarrgh/react-scroll-memory

npm version

React component that preserves and restores page scroll position when the back browser button is pressed.

Installation

npm i @yarrgh/react-scroll-memory

Example Usage

import { ScrollMemory } from "@yarrgh/react-scroll-memory";

const App: React.FC = () => {
  return (
    <Router>
      <ScrollMemory />
      <Switch>
        <Route path="/" exact component={Home} />
        <Route path="/services" exact component={Services} />
        <Route path="/products" exact component={Products} />
        <Route path="/sign-up" exact component={SignUp} />
      </Switch>
      <Footer />
    </Router>
  );
};
1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.11

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago