Skip to content
A Small (renderless) component to loop back to the top of the page while scrolling
TypeScript HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example
src
test
.gitignore
LICENSE
README.md
camber.jpg
package.json
tsconfig.json
yarn.lock

README.md

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

You can’t perform that action at this time.