2.0.0 • Published 6 years ago
react-camber
Licence
MIT
Version
2.0.0
Deps
0
Size
11 kB
Vulns
0
Weekly
0
camber
Automatically loop to the top of the page upon reaching the bottom
Installation
This module is distributed via npm which is bundled with node and
should be installed as one of your project's dependencies:
npm install --save react-camber
yarn add react-camber
Usage
import React from 'react'
import ReactDOM from 'react-dom'
import {Camber} from 'react-camber'
const App = () => (
<div style={{ height: '150vh' }}>
<span>Scroll to the bottom of the page</span>
<Camber />
</div>
)
ReactDOM.render(<App />, document.getElementById('root'))
LICENSE
MIT