Let's take a look at the API that we're using to get our data.
So the API is the one that you're using to fetch our data.
I mean, the questions that we are getting as well as the correct answers and we can define the number
of questions that we want.
They can be considered the category of questions they consider, the difficulty level, whatever questions
they should be.
And if I just click on Generate API, you are, this is going to generate on which you're supposed to
make a call.
So let's just copy this and start creating our fetch method so that we can get our data.
Now close this at vehicle terminal.
And now will be creating such methods so that we can get our data from our API.
The last piece of state that we want in our application and that is going to be for tomorrow, so this
is going to be for our models that is going to define with our model is open or closed.
So against.
More.
Said more.
There's going to be equal to your state, and initially it is going to be clear to folks.
All right, so here we are having a models.
OK, let's get rid of them.
Now, by setting up a contest suggests before we add any fetch method to it, so let's set up a context
address for that purpose and we'll be creating a context.
So we're right above your ad that provide a reader contest.
Context.
Which is going to be equal to the average or create context.
All right, so here is a context has been created.
I'd say, you know, come down, we need you.
Constants or states?
And give it a written statement.
Now said this written statement, we are going to define the data that we want to send outside and inside
this written statement, we're going to have an app context provider.
So context note provider now process now inside this is going to be the children.
So give it children.
All right, so now this contest is going to hold different values.
Now we even need to explore this, right?
So in order to export.
So export.
Bronzed.
News, global context.
Which, again, is a narrow function.
And this is going to get done.
Use context.
It goes to context, all right, so we need to import a U.S. context as well from a React model now.
We'll also be needing to explore the appropriate context as well that are providers.
So let's explore that context as well as a provider.
All right, so we are an agreement to the import use contest from rear.
So let's import I use context.
Now, before we move to create a fetch method, let's just remove this react.
So there are basically two ways to solve this.
They're going to have the three.
I'm not going to add context and import the act from here.
The other way around is that I'll just remove this react as well as this reactor or create context and
remove this react and just import create context from react.
So any saying you can choose any one of the methods.
So equals to create context and we are importing.
I used it.
I use context as well as I create context.
And apart from it, we are also will also be discharging children.
So right inside these bases, just call in your children.
All right.
So we are now in a boilerplate.
Boilerplate is ready.
So right above your return statement inside the app will be creating a fetch method so that we can gather
data from an API.
So let's create the fetch method.