Check if given React element is created by certain Component type
react-prop-types-element-of-type requires React 0.14
npm install --save react-prop-types-element-of-type
See test cases for usage.
First, clone the project.
git clone ...
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request