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 forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #proptypes #react #component
ADD COMMENT
Topic
Name
7+4 =