2.0.2 • Published 10 years ago

react-router-link v2.0.2

Weekly downloads
225
License
ISC
Repository
github
Last release
10 years ago

react-router-link

An updated Link component for react-router

This adds some extra properties to the default react-router Link component so that:

a) you can select whether to use push, replace or back history commands b) you can choose a different event to onClick

Examples

import { Link } from 'react-router-link'

Use replaceState so as not to alter history:

<Link to="/home" historyType="replace">Home</Link>

Use onTouchTap from react-tap-event-plugin instead of onClick

<Link to="/home" eventName="onTouchTap">Home</Link>

Go back to the previous location on the history stack:

<Link historyType="back">Back</Link>
2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.0

10 years ago

0.1.2

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.1

10 years ago