2.1.0 • Published 5 years ago

react-router-component-link v2.1.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

react-router ComponentLink

This is a clone of Link, but it allows you to pass a component property which will be used to render the DOM element being clicked (the traditional Link component renders an <a> element). Nothing else is changed.

Version Tests Stability

using

It works exactly like Link from react-router:

import {Link} from "evergreen-ui"
import ComponentLink from "react-router-component-link"

export default function Header () {
  return <header>
    Welcome to my special website, click <ComponentLink to="/heck" component={Link}>here to go to heck.</ComponentLink>
  </header>
}

That's it.

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago