New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@fiveem/react-scroll-to-top

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fiveem/react-scroll-to-top

React Scroll To Top

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
2
Created
Source

React Scroll To Top

npm (scoped)

The component scroll to top on route change

Install

npm i @fiveem/react-scroll-to-top

Usage

import ScrollToTop from '@fiveem/react-scroll-to-top'

<Router>
    <ScrollToTop>
        <Switch>
            <Route exact path="/" component={FirstComponent}/>
            <Route exact path="/path" component={SecondComponent} />
        </Switch>
        <ModalSection />
    </ScrollToTop>
</Router>

The component must be rendered inside a Router element.

Keywords

react

FAQs

Package last updated on 17 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts