PropTypes in React
PropTypes is a runtime checker you attach to a function or class: MyComp.propTypes = { … }. isRequired marks must-have props. defaultProps (or default parameters) fill gaps. You import from 'prop-types', not from 'react' (that split happened years ago).
If the team already uses TypeScript, don’t add PropTypes ‘for extra safety’ on every file — you’ll maintain two sources of truth. Pick one.
PropTypes in React — on screen — Pen × 1. Missing qty uses default. Wrong type → dev warning.
prop-types package + isRequired. TS in new code.