1.0.1 • Published 6 years ago

react-router-props-link v1.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
6 years ago

react-router-props-link

Build Status npm version License

React Router DOM Link component using history from props

The same as React Router DOM <Link> except it supports optionally reading history as a prop.

import Link from 'react-router-props-link'
import createHistory from 'history/createBrowserHistory'

// In practice, you'll probably be creating this elsewhere
const history = createHistory()

<Link
  to='/'
  history={history}
/>

Author

© 2018 Tom Vincent git@tlvince.com (https://tlvince.com)

License

Released under the MIT license.

1.0.1

6 years ago

1.0.0

6 years ago