what helped me with this challenge was the note it has which says:
Note: Remember that the syntax to add a prop to a component looks similar to how you add HTML attributes. However, since the value for quantity is an integer, it won’t go in quotes but it should be wrapped in curly braces. For example, {100}. This syntax tells JSX to interpret the value within the braces directly as JavaScript.
Especially the part “looks similar to how you add HTML attributes”
so for eg. if I wanted to add an id attribute to a p element in html I would do it like this:
First, in order to pass props, we don’t need to specify ‘props’ keyword with the component name, just like below <Items.props = {quantity :10}/> // incorrect
Second, we declare default props by passing in an object, but we don’t have to pass an object when we give value to props from parent components, just like below {quantity:10} // incorrect
While passing props from parent component, we only need to mention the prop name and pass a value after the equality operator, just like below
<Items quantity={10} /> // correct
Hope this helps. Feel free to ask if there is any other query.
The component you are making changes in, is the parent component, the component which you are calling in your render method is the child component.
In other words, the class or component in which you are working right now is the parent component and the component which you are using in this parent component, is the child component.
In above example, ShoppingCart is the parent component and Items is the child component.