# react-router-prop-types

> Runtime type checking for react-router props

Latest version **1.0.5** (published 2020-09-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-router-prop-types
pnpm add react-router-prop-types
yarn add react-router-prop-types
bun add react-router-prop-types
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-09-01 |
| First published | 2017-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 9.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 49 |
| Author | Raiden |
| Maintainers | javascript-ninja |
| Keywords | react, route, router, react-router, proptype, proptypes, props |

## Links

- npm: https://www.npmjs.com/package/react-router-prop-types
- Repository: https://github.com/Javascript-Ninja/react-router-prop-types
- Homepage: https://github.com/Javascript-Ninja/react-router-prop-types#readme
- Issues: https://github.com/Javascript-Ninja/react-router-prop-types/issues
- npm.io page: https://npm.io/package/react-router-prop-types

## Dependencies (2)

- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2
- [@types/prop-types](https://npm.io/package/@types/prop-types.md) ^15.7.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2020-09-01
- 1.0.4 — 2018-06-19
- 1.0.3 — 2018-04-09
- 1.0.2 — 2018-03-25
- 1.0.1 — 2018-03-25
- 1.0.0 — 2018-02-25
- 0.0.3 — 2017-12-22
- 0.0.2 — 2017-09-19
- 0.0.1 — 2017-06-20

## README

# react-router-prop-types

Runtime type checking for [react-router](https://github.com/ReactTraining/react-router) props

## Installation

```shell
npm install react-router-prop-types --save
```

## Usage

```jsx
import React from 'react';
import ReactRouterPropTypes from 'react-router-prop-types';

class MyComponent extends React.Component {
  static propTypes = {
    // You can chain any of the above with `isRequired` to make sure a warning
    // is shown if the prop isn't provided.
    history: ReactRouterPropTypes.history.isRequired,
    location: ReactRouterPropTypes.location.isRequired,
    match: ReactRouterPropTypes.match.isRequired,
    route: ReactRouterPropTypes.route.isRequired, // for react-router-config
  }
  render() {
    // ...
  }
}
```

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