# link-react

> A generalized link component that allows client-side navigation while taking into account exceptions.

Latest version **3.0.0** (published 2016-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install link-react
pnpm add link-react
yarn add link-react
bun add link-react
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2016-11-22 |
| First published | 2016-11-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Baz |
| Maintainers | thinkloop |
| Keywords | link, <a>, href, routing, navigation, component, react |

## Links

- npm: https://www.npmjs.com/package/link-react
- Repository: https://github.com/thinkloop/link-react
- Homepage: https://github.com/thinkloop/link-react#readme
- Issues: https://github.com/thinkloop/link-react/issues
- npm.io page: https://npm.io/package/link-react

## Alternatives

- [express-promise-router](https://npm.io/package/express-promise-router.md) — 736.1K weekly downloads
- [next-usequerystate](https://npm.io/package/next-usequerystate.md) — 29.8K weekly downloads
- [@bitkyc08/opencodex](https://npm.io/package/@bitkyc08/opencodex.md) — 4.6K weekly downloads
- [lynkr](https://npm.io/package/lynkr.md) — 575 weekly downloads
- [baremetal.js](https://npm.io/package/baremetal.js.md) — 42 weekly downloads

## Recent versions

- 3.0.0 (latest) — 2016-11-22
- 2.0.1 — 2016-11-11
- 2.0.0 — 2016-11-03
- 1.0.3 — 2016-11-03
- 1.0.2 — 2016-11-02
- 1.0.1 — 2016-11-01

## README

# Link (React)

A generalized link `<a>` component that allows client-side navigation, while ignoring:

- shift-clicking
- alt-clicking
- ctrl-clicking
- non-left clicking
- `target` attribute
- `mailto` href

## Install

```
npm install link-react --save
```

React itself is a peer dependency and not included, it is the responsibility of the implementing app to provide a reference to `React`.

## Use

```
import React from 'react';
import Link from 'link-react';

export default (p) => (
	<nav>
		<Link href={ p.homeLink.href } onClick={ p.homeLink.onClick }>{ p.homeLink.label }</Link>
		<Link href={ p.aboutLink.href } onClick={ p.aboutLink.onClick }>{ p.aboutLink.label }</Link>
	</nav>
);

```

## License

Released under an MIT license.

## Related
- [state-driven routing](https://github.com/thinkloop/state-driven-routing): Full-featured, dependency-free, dsl-free, state-driven routing.


## Other
- [extreme decoupling todo app](https://github.com/thinkloop/todo-app/): Example todo app of extreme decoupling of react, redux and selectors
- [memoizerific](https://github.com/thinkloop/memoizerific/): Fast, small, efficient JavaScript memoization to memoize JS functions

Like it? Star It

---
_Source: https://npm.io/package/link-react · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
