Skip to content

wuxiangwa/react-jump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-jump

Jump component is based on jump.js for React

Installation

npm install react-jump

Usage

import { BackToTop, Jump } from 'react-jump';

const App => () =>
  <div>
      // back to top 跳回顶部
      <BackToTop
      options={{offset: 50}}
      className='cars'
      showHeight={400}
      >
        <button>UP</button>
      </BackToTop>
      // Jump to where you want to go on this page 跳到你想去的地方
      <Jump target={'.cars'}><span style={{color: 'red'}}>i want to go cars</span></Jump>
  </div>

export default App

About

Jump component is based on jump.js for React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published