New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-linkto

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-linkto

generates an a-tag, which triggers the onclick only if no modifier-key is active. else it will not do the preventDefault

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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>

Keywords

react

FAQs

Package last updated on 17 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts