The `Items` component should include a `propTypes` check to require a value for `quantity` and ensure that its value is a number

// Change code below this line

Items.PropTypes = {quantity: PropTypes.number.isRequired}

// Change code above this line

Hello?
Was there a question meant above?

when i run it, it shows me this error message: The Items component should include a propTypes check to require a value for quantity and ensure that its value is a number.

Please post a link to the challenge

looks like propTypes is a case-sensitive key so you must fix your spelling to be exactly the same (not PropTypes)

i changed PropTypes to propTypes but there is still the error

you’re right i only need to change Items.PropType to Items.propType

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.