You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extract the <li> containing "Pizzas" from the <Restaurant /> component to a new component named Order. Also, move the declaration of the orders state and the orderOne function from the <Restaurant /> component to the new <Order /> component. Use the <Order /> component in the <ul> list of the <Restaurant /> component.
From React-Module-Project created by SallyMcGrath: CodeYourFuture#12
Instructions:
Extract the
<li>
containing "Pizzas" from the<Restaurant />
component to a new component namedOrder
. Also, move the declaration of theorders
state and theorderOne
function from the<Restaurant />
component to the new<Order />
component. Use the<Order />
component in the<ul>
list of the<Restaurant />
component.Dependent on #11
Test:
The text was updated successfully, but these errors were encountered: