Automatically loop to the top of the page upon reaching the bottom
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
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'))
MIT