it must be a function, usually from React.PropTypes February 4, 2023 by Tarik You have an error: React.PropTypes.string.isRequred. Spell isRequired correctly, and it should be ok.