# babel-plugin-react-remove-prop-types

> Removes React propTypes

Latest version **3.0.0** (published 2016-07-09) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install babel-plugin-react-remove-prop-types
pnpm add babel-plugin-react-remove-prop-types
yarn add babel-plugin-react-remove-prop-types
bun add babel-plugin-react-remove-prop-types
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2016-07-09 |
| First published | 2015-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 85 |
| Author | Nikita Gusakov |
| Maintainers | nkt |
| Keywords | babel, babel-plugin, react, minification, propTypes |

## Links

- npm: https://www.npmjs.com/package/babel-plugin-react-remove-prop-types
- Repository: https://github.com/nkt/babel-plugin-react-remove-prop-types
- Homepage: http://nkt.github.io/babel-plugin-react-remove-prop-types/
- Issues: https://github.com/nkt/babel-plugin-react-remove-prop-types/issues
- npm.io page: https://npm.io/package/babel-plugin-react-remove-prop-types

## 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

- 3.0.0 (latest) — 2016-07-09
- 2.0.2 — 2016-02-23
- 2.0.1 — 2016-02-12
- 2.0.0 — 2016-02-12
- 1.0.2 — 2015-12-23
- 1.0.1 — 2015-12-23
- 1.0.0 — 2015-11-01
- 0.3.0 — 2015-07-10

## README

# Babel Plugin for removing React propTypes
[![Circle CI](https://circleci.com/gh/nkt/babel-plugin-react-remove-prop-types.svg?style=svg)](https://circleci.com/gh/nkt/babel-plugin-react-remove-prop-types)
[![Downloads](https://img.shields.io/npm/dm/babel-plugin-react-remove-prop-types.svg)](https://www.npmjs.com/package/babel-plugin-react-remove-prop-types)

Removes `propTypes` from your React components.

**This plugin deprecated. Use [babel-plugin-transform-react-remove-prop-types](https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types)**

## Example

**In**
```javascript
const Foo = React.createClass({
  propTypes: {
    foo: React.PropTypes.string
  }
});
```

**Out**
```javascript
const Foo = React.createClass({});
```

## Installation

```sh
$ npm install --save-dev babel-plugin-react-remove-prop-types
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

```json
{
  "env": {
    "production": {
      "plugins": ["react-remove-prop-types"]
    }
  }
}
```

### Via CLI

```sh
$ babel --plugins react-remove-prop-types script.js
```

### Via Node API

```javascript
require("babel-core").transform("code", {
  plugins: ["react-remove-prop-types"]
});
```

License
-------
[![MIT license](https://img.shields.io/npm/l/babel-plugin-react-remove-prop-types.svg)](LICENSE)

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