I need help if somebody can help me

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**

const Items = (props) => {
return <h1>Current Quantity of Items in Cart: {props.quantity}</h1>
}

Items.defaultProps = {
quantity: 50
}

class ShoppingCart extends React.Component {
constructor(props) {
  super(props);
}
render() {
  { /* Change code below this line */ }
  return <Items quantity={50} />
  { /* Change code above this line */ }
}
};
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36

Challenge: Override Default Props

Link to the challenge:

The instructions say:

“Override the default prop by passing in a value of 10 for quantity .”

What value are you passing in?

@freshoso ,

Your default props should be quantity:0 only and do not change this. Make the change to the <Item> component in ShoppingCart and give the quantity value as the instruction says.

Hope that helps

thank you for that and it did help

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