babel-plugin-extract-react-types

0.2.0 • Public • Published

babel-plugin-extract-react-types

A Babel plugin to store the types of React components as a property on the component for documentation

Install

yarn add babel-plugin-extract-react-types pretty-proptypes

Usage

.babelrc

{
  "plugins": ["babel-plugin-extract-react-types"]
}
import SomeComponent from 'somewhere';
import Props from 'pretty-proptypes';

<Props heading="My Component" component={SomeComponent} />;

Inspiration

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.01
0.1.1413
0.1.130
0.1.120
0.1.110
0.1.100
0.1.90
0.1.80
0.1.70
0.1.60
0.1.51
0.1.40
0.1.30
0.1.20
0.1.10
0.1.017
0.0.54
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i babel-plugin-extract-react-types

Weekly Downloads

36

Version

0.2.0

License

MIT

Unpacked Size

7.63 kB

Total Files

5

Last publish

Collaborators

  • noviny
  • delcore92
  • emmatown