Can anyone explain these instructions, isn’t name a property and not a variable?
({ name, id, price, category }) => {
This is destructuring syntax, so the value of the property is taken out of the object being destructured and bound to the variables listed
Ok, thanks for the insight on destructuring!
1 Like