React - Use Default Props

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

How can i set this to its default props

  **Your code so far**
const ShoppingCart = (props) => {
return (
    <h1>Shopping Cart Component</h1>

// Change code below this line
ShoppingCart.defaultprops = {
items : 0
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:103.0) Gecko/20100101 Firefox/103.0

Challenge: React - Use Default Props

Link to the challenge:

you need to use correct camel case for methods

1 Like

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