import proptypes global components code example Example: install proptypes react npm install --save prop-types