react-linkto
v0.1.2
Published
generates an a-tag, which triggers the onclick only if no modifier-key is active. else it will not do the preventDefault
Downloads
9
Readme
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>