1.0.4 • Published 3 years ago
scroll-to-top-onload v1.0.4
scroll-to-top-onload
Simple ReactJS component that will scroll to top upon load
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