element-prop-types
React PropTypes for props-elements
Install
npm install --save element-prop-types
Usage
const ElementPropTypes = ; const Modal = <div> <div>header</div> <div>items</div> </div>; ModalpropTypes = header: ElementPropTypesisRequired items: PropTypes; // render ModalReact;
API
elementOf(Component)
checks the type of a React element