Hey all, having trouble with the challenge below. Any ideas what i’m doing wrong?
const Items = (props) => {
return <h1>Current Quantity of Items in Cart: {props.quantity}</h1>
}
Items.defaultProps = {
quantity: 0
}
class ShoppingCart extends React.Component {
constructor(props) {
super(props);
}
render() {
{ /* change code below this line */ }
return <Items quantity={100} />
{ /* change code above this line */ }
}
};
Link to the challenge: