Skip to content

A Small (renderless) component to loop back to the top of the page while scrolling

License

Notifications You must be signed in to change notification settings

kysley/react-camber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

camber 🏎
camber image

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

About

A Small (renderless) component to loop back to the top of the page while scrolling

Topics

Resources

License

Stars

Watchers

Forks

Packages