tomchentw/react-prop-types-element-of-type

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# react-prop-types-element-of-type
> Check if given React element is created by certain Component type

[![Version][npm-image]][npm-url] [![Travis CI][travis-image]][travis-url] [![Quality][codeclimate-image]][codeclimate-url] [![Coverage][codeclimate-coverage-image]][codeclimate-coverage-url] [![Dependencies][gemnasium-image]][gemnasium-url] [![Gitter][gitter-image]][gitter-url]


## Usage

`react-prop-types-element-of-type` requires __React 0.14__

```sh
npm install --save react-prop-types-element-of-type
```

See [test cases](https://github.com/tomchentw/react-prop-types-element-of-type/blob/master/src/__tests__/index.spec.js) for usage.


## Development

First, clone the project.

```shell
git clone ...
```


## Contributing

[![devDependency Status][david-dm-image]][david-dm-url]

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request


[npm-image]: https://img.shields.io/npm/v/react-prop-types-element-of-type.svg?style=flat-square
[npm-url]: https://www.npmjs.org/package/react-prop-types-element-of-type

[travis-image]: https://img.shields.io/travis/tomchentw/react-prop-types-element-of-type.svg?style=flat-square
[travis-url]: https://travis-ci.org/tomchentw/react-prop-types-element-of-type
[codeclimate-image]: https://img.shields.io/codeclimate/github/tomchentw/react-prop-types-element-of-type.svg?style=flat-square
[codeclimate-url]: https://codeclimate.com/github/tomchentw/react-prop-types-element-of-type
[codeclimate-coverage-image]: https://img.shields.io/codeclimate/coverage/github/tomchentw/react-prop-types-element-of-type.svg?style=flat-square
[codeclimate-coverage-url]: https://codeclimate.com/github/tomchentw/react-prop-types-element-of-type
[gemnasium-image]: https://img.shields.io/gemnasium/tomchentw/react-prop-types-element-of-type.svg?style=flat-square
[gemnasium-url]: https://gemnasium.com/tomchentw/react-prop-types-element-of-type
[gitter-image]: https://badges.gitter.im/Join%20Chat.svg
[gitter-url]: https://gitter.im/tomchentw/react-prop-types-element-of-type?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge
[david-dm-image]: https://img.shields.io/david/dev/tomchentw/react-prop-types-element-of-type.svg?style=flat-square
[david-dm-url]: https://david-dm.org/tomchentw/react-prop-types-element-of-type#info=devDependencies