OK, so now what we'll do is we'll try to try and get blocks.
And inside that will be fetching the data and we'll fetching the arrows inside the catch.
So we'll divide that by block first by and side is that it will be.
A constant and that will be the response, basically, and that will be storing all of the response
which we are getting from that particular pain point.
Who will ride to the concert and will try to respond?
Response.
And.
We are viewing this.
Why are we doing this over it and then we'll fetch fetch?
And third, this will write Dural basically to right now I'm just writing that you are ill and I'm not
writing this.
So it's dumb because.
Or I can even just write data, so basically the search term is what it's available, which is odd.
So it really was like whatever we will type inside the the search box and that will be stored in a particular
variable and that variable will be parsed who are point after this, after this call to sign that will
be passed here and.
Then the surge would be made using that particular end point.
So we can't make it a static thing because we want to start to different, different things and that
needs to be dynamic.
And that is why I am doing it.
Like I'd just left it till here and next.
After this, the part will be done.
So let me, first of all, just create another hook.
And that will be concert.
Search term.
And that search term.
That search term.
And.
U.S.
State and in the initial, I will keep it as as like when we know the page, so it will basically just
as and after this, there will be this alphabet or we will not have an empty.
Home page, basically, because we want to display some things on the screen, and that will be this
as though that is what we are going to do here and.
That is what we are going to put in the Fed.
We'll try this, you are OK.
So inside diabetics?
And yet that will be the usual do oral and.
Yeah.
Well.
Remember, the scandal is this constant or the variable which we have declared or would here?
OK, so next to.
What we'll do is we'll add the remaining part after this, you are like, tell this, we have graft,
OK, but after that, the things will be dynamic.
That will be a dynamic dome and which is their dynamic dome that this side dome.
So that will add after this particular ritual.
So.
So inside the back picks, only what I'll do is I'll provide another dollar symbol, and here I will
ride this dump those third.
And then we learned that on.
And.
You all and Andy Serwer.
So this is this is what are like from this data will be fed.
This is a final output like input.
Or we can see this is the final command which would be giving the browser that, hey, that data from
this particular API endpoint.
OK, so we have fed you have to send the first to question No.
We'll we've got our data and that is like stored in this response.
But no, we didn't.
We need to like change that data into the JASON format.
And if we don't have it in the DSM, because whatever the data, what you get on the API, that needs
to be in the different format.
So let's just do it Konst data and this will be also be awaiting.
Because the like the the root of this is also the end of it function.
So here we'll write a response.
It disappoints me that this one, OK?
The response thought.
Yes.
OK.
So, Jason, and now this data will be storing the response in the JSON format.
OK, right now in the response that would that would be like, of course, the database we are receiving
from that particular point.
But that was not in the JASON format.
Like, we never know if it's in JSON honored in the text file or whatever.
So this will come to what we're going to use and and this clears a lot of things.
OK.
Next, we'll be consoling this like data or console dark log side of this data and.
Now we'll be storing that data into object basically, so we'll write consent and we'll write.
And drinks, and then we'll grab that all inside their drinks and know what we want to stored in this
object, that will be data.
And now we want to check, like if things is null or not, you see, like whatever we are getting from
this data, like whatever we are getting from that API endpoint, there should not be none.
And if that isn't all that means, we have not yet we have not received anything and not are.
Whatever the thing, which we need to show or display on the screen, that is empty.
And if that is the case, then we'll display a message that is like not no cocktails must match your
sword and that is nothing to display on the screen so that.
We need to like display if that is no more drinks, this this you see object, if this object is empty,
that means we have not yet received any data.
So we will right if we block.
If.
And signed this bill passed that brings.
And if that is no strings, no, this call, this piece of code will be executed if this is true, like
if there is something, then ban or lead.
This will call the sport will be executed.
So here we'll write.
We'll make another constant.
And that will be new.
Coffee beans and this will be equal to.
And drinks thought map.
And inside this, there will be an item.
And this would be equal to some constant and those will be the things like go on.
And this will also be an object.
And here what we are going to store from from that particular item that that, first of all, we will
store the idea of the drink because we want to move further and we want to like view the specific page
with that particular cocktail, like containing all the details and the photo and whatever the ingredients
are, not that we need to.
For that, we'll need an I.D..
OK.
And feel need like four to do that.
That's a thumbnail, and we'll need some more specific information so that the first one would be I.D..
Bring.
And that is this is the irony of the next we'll have the nod and the.
Think next, we'll be having the duh FDR like it's Cheney or whatever and drink, then we'll be having
a thumbnail, basically the thumb and.
Next, sorry to come up here next, we'll be having if it's alcoholic or not to start.
And call on Nic.
And next, we'll be having a last last barometer to hear that is the.
And that class now, which is what of the glass of that in which that particular cocktail is solved?
So that is the last word next will be like this all will be grabbing from that item.
Now you remember, we have passed that here and we can also do like drinks, diet, map and drink.
But that doesn't look good.
Like basically, the rule is that when we are mapping an area of an object, so for whatever is the
name of that particular area or the object, whatever like object to gender, we should pass the singular
form of that particular area or object.
But that is not at all a compulsion.
It's just like string.
You can pass whatever you want.
Okay?
So we have done that.
And now that will be equal to the item.
And next, what we'll do is we'll down all of that.
Or let me go ahead and create a written statement like after this, if if this success falls like that
should be something, we would be returning, right?
We can't just leave.
Okay?
And right now we are just checking this and like, you drinks and do this.
But what?
We want to return to that part we'll be doing here.
So after the item?
And started this only.
We'll be returning like it on.
Body, you are torn and there will be typing that I.D. and I.D. would be coming from IED drink.
Next, we'll be having a name like the name of that particular cocktail and that will be coming from
I, I.D. and the R and.
Drink.
OK, I should not use semicolon here.
That would be just a comma, and I remove this semicolon just giving an error.
So next we'll be having that image and that image will be stored inside this SD card.
And.
Thank.
So this is continuing on in May, so it will provide a call my.
Remember not those like Caylee Anthony, not semi-colon, because that would give you an added view.
We have to separate them using the comma or the semicolon.
So next, we'll be giving a glass.
Glass and.
SDR.
Plus.
And that is it.
For.
This is the work we ever done from this statement, like when the world said this is true.
So this is what we are returning to next will be like starting a new like you state hawk will be storing
some of the things in that so that we will do in the next to.