Question: How do you destructure the properties that are sent to the Dish component?
- `function Dish([name, cookingTime]) { return
{name} {cookingTime}
; }` - `function Dish({name, cookingTime}) { return
{name} {cookingTime}
; }` - `function Dish(props) { return
{name} {cookingTime}
; }` - `function Dish(...props) { return
{name} {cookingTime}
; }`
Answer: The correct answer of the above question is Option B:`function Dish({name, cookingTime}) { return {name} {cookingTime}
; }`