react-linkto

0.1.2 • Public • Published

React-LinkTo

This is a simple component for generating an a-tag. The given onClick property will only be executed, when no modifier key is pressed. Else the normal browser behaviour will be done.

As modifier-keys are used ctrl, shift, alt and the mac-cmd

<LinkTo href="/path/to/something" onClick={this.doSomethingElse.bind(this)}>
  Text to click
</LinkTo>

Readme

Keywords

Package Sidebar

Install

npm i react-linkto

Weekly Downloads

2

Version

0.1.2

License

none

Last publish

Collaborators

  • plusgut