For the menu page, we are going to have our menu data, then we are going to map through that depending on what is selected, so that way we can save a lot of time and trying to style that.
on the top we will have Pasta, Pizza, Appetizers, Entrees, Desserts and possibly a kids menu.
And there is a certain part in the router that we can implement to help us to accomplish that where it will return what we want based on the section that is selected and will look similar to this:
For the menu page, we are going to have our menu data, then we are going to map through that depending on what is selected, so that way we can save a lot of time and trying to style that. on the top we will have Pasta, Pizza, Appetizers, Entrees, Desserts and possibly a kids menu.
And there is a certain part in the router that we can implement to help us to accomplish that where it will return what we want based on the section that is selected and will look similar to this:
<Route path="/Menu" element={<Menu />}> <Route index path='1' element={<1 />}></Route> <Route path='2' element={<2 />}></Route> <Route path='3' element={<3 />}></Route> </Route>