Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

proptypes for a react component

//You can now use `PropTypes.elementType`
// to validate for Component type props
Source by reactjs.org #
 
PREVIOUS NEXT
Tagged: #proptypes #react #component
ADD COMMENT
Topic
Name
2+1 =