1.0.1 • Published 6 years ago
react-router-props-link v1.0.1
react-router-props-link
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.