Destructuring props
Also written: destructure
Unpacking the props object right in the parameter list, as in `function ProductCard({ name, priceCents })`. It shows exactly which props the component expects.
Also written: destructure
Unpacking the props object right in the parameter list, as in `function ProductCard({ name, priceCents })`. It shows exactly which props the component expects.