So let's not forget back to our main repo in here, we're looking for the folder number five.
So let me start with the Observer that I'm going to navigate back to my route.
And then, of course, I'm going to navigate to a menu and then more specifically, set up drag and
drop.
We are in the correct folder and clear the terminal.
And I'm not just from NPM install.
So we get all the balances and then of course, and RPM start as well.
And of course we can navigate through the source and file we're looking for is Appoggiaturas.
So in the Objets we import three things.
We have menu component which will display the list.
We have categories that will display the buttons of course, and then we have the items.
Now the items are coming from that address.
And again, that address is a file that holds my array online.
Each and every item is an object.
And again, we have the properties, the ideas, the titles, the categories, prices, images and a
description.
So as far as the buttons, we'll use this category property.
You'll notice that each item has some kind of category.
And then depending on that category, well, we'll display the buttons.
So the more categories you have, of course, the more buttons you'll also have in your project.
So that is my list.
And then let's start working in the app Jazz.
And first, I would want to set up two state values.
And by the way, as far as the return, you should see the menu project set up if you want.
You, of course, can do the same thing here we go to localhost three thousand and you should see the
same thing.
Menu, project setup.
And I'm going to have two stage values, one for menu items and the second one for the categories.
So let's just go here with CONSED and can we go with menu items and then also of course the function
set menu items and that is equal to a used state.
And now of course again we pass in those items, so whatever array we're getting from our data file.
OK, that's awesome.
And I would want to set up categories for the time being is just going to be an empty array because
I would want to do that last, though.
So we're going to go here with categories like so and then set and the same thing categories.
OK, and that is to use state and like I just said, it's just going to be an empty array at the start.
Then I would want to work on my return.
And in here, we're going to go with Main, then we're going to delete this, my new project set up,
let's also add my title just in case.
So let's just go with section, then add some classes here.
We're going to go with menu and section like.
So then, like I said, title inside of the title.
We're going to go with adding to our menu.
OK, awesome.
And then let's also add a underline write beautiful and now have our two components.
One is going to be catagories, something we're going to work on last and then of course also the menu.
So we display we have categories component as well as the menu component.
And I think the more straightforward one is going to be menu where we have list of items and I just
want to iterate and for each item I would just want to return some kind of nice looking article with
an image, with text and all that good stuff.
And of course, in order to pass my data into the menu, what do I need to do?
I need to set up some kind of prop.
Correct.
So I set up the prop and the prop name will be items and I'll pass in my menu items, state value and
then of course, inside the menu.
Just so of course, that is my menu component.
Now, of course, I would want to access the items and then iterate over the list and line for each
and every item.
Have a better looking return turn here.
Let's change the heading to two.
And let's add a little bit of classes and more specifically, we're looking for section santur like
so and I'll delete my menu component, my meaningless text.
And inside the section center, I'm going to iterate over my items.
So over my prop.
And then again, we need to come up with some kind of name.
In this case, I'm going to say menu item that represents that object.
And as far as the properties that I'm looking for, well, then just check.
Correct.
I have the title category, price, image and description, and we're going to do the structuring because
I think it's going to be faster.
So again, we go with ID, we go with title, we go with image as well as the description not as equal
to my menu item.
And once I have access to all of that, then we just need to come up with a return where I'm going to
go with article again.
We have a list, so we need to have a key.
Then we pass in the ID.
We set up a class and name.
Now that is equal to a menu hyphen item.
So and then like I said, there's going to be an image for the source.
I'll use my image property for the alternative will use of the title.
I don't hear an online class name will be photo photo over here, it's safe, and then, of course,
I can see that I have my images and then right next to the image, I would want to have the item info.
So I have the image and then I'm going to go with div with a class of item and then info and inside
we're going to go with heter with the title The Price, and then of course we'll also have the description.
So let's go with a header and inside of the header we have it heading for with a price or I'm sorry,
title property here like so sure that should be our title.
And then also I'd want to have a price for this one.
I do want to add a class name and then of course I'm looking for my price property on.
The problem here is that of course I didn't structure it.
So let me go back.
Let me just double check.
Yeah.
The price is the name of my property and instead of the menu, I'm going to go with a price and I'll
close out my CURLEE purchase as well.
So there it is.
Now I have my price and the last thing is my description.
So right next to the header, but still within it there we're going to go paragraph and we're looking
for the description.
We'll close out our curly braces and I would want add a class name of item and then hyphen text.
So this should look extremely familiar because we have done that already quite a few times now.
The only thing probably that is missing is the so so now we have that as well.
But successfully we have the list.
So now comes the interesting part where we'll set up our buttons.