scroll-to-top-onload
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

scroll-to-top-onload

Simple ReactJS component that will scroll to top upon load

NPM JavaScript Style Guide

Install

npm install --save scroll-to-top-onload

Usage

import React, { Component } from 'react'

import MyComponent from 'scroll-to-top-onload'
import 'scroll-to-top-onload/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}

License

MIT © ptcayetano

Readme

Keywords

none

Package Sidebar

Install

npm i scroll-to-top-onload

Weekly Downloads

2

Version

1.0.4

License

MIT

Unpacked Size

6.61 kB

Total Files

9

Last publish

Collaborators

  • ptcayetano