What is wrong with my code?
Describe your issue in detail here.
const ShoppingCart = (props) => {
return (
Shopping Cart Component
);
};
// Change code below this line
itemName.defaultProps={
propx: value,
propy: value
};
ShoppingCart.defaultProps = {
items= 0
};
const ShoppingCart = (props) => {
return (
<div>
<h1>Shopping Cart Component</h1>
</div>
);
};
// Change code below this line
itemName.defaultProps = {
prop-x: value,
prop-y: value
}
ShoppingCart.defaultProps = {
items= 0,
};
Chrome
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.75 Safari/537.36
Challenge: Use Default Props
Link to the challenge: