Hello, welcome back to this new video of this project.
So until now, we have completed everything regarding the homepage now styling the reducer functions
and everything.
The last thing we are left with is dealing with the blocks.
The main aim of our main motive behind our project is building blocks.
So we to get the data of these blocks.
So basically, we can get the data of these blocks from our API call a genius.
OK.
So go to this page.
Genius, what you.
This is our API like in a simple news rest API, which with which you can search news, related articles
and get results in Jason.
It is also possible to get top news headlines based on the Google ranking.
OK, so you get like this and the documentation.
This is the date on file.
You'll be getting the total number of articles, for example.
I'll give some.
A.
Such.
You can see your ratings on two thousand twenty nine thousand eighteen articles for this input.
And this will be in the on format.
The title of that description content you are an image published X-Force and everything so that we can
use everything so that we can bring to individuals like this.
OK.
So how to use this first thing, you will sign it.
OK?
Just sign it into the genius, then you'll get this this thing whenever you sign design and you have
to create an account.
You can just get on with your username and password.
Once you create the content, you sign up, then you'll get this page dashboard.
So this will by default give you an API token.
Your plan, a request, limit requests and everything.
So copy this API key.
This will use it for our website.
So once you do this, we are done with the API.
Now we have to write code for the blog Dodgers component.
So when we just record incompetence, you create a page called Blogs Charges.
So here now we'll see what this all code means.
Like all the line by line explanation of these codes, posting what we are doing, reporting react.
So as I said about public service, you will use it, you can use Efecto Kaiser said in a previous lecture
that similar to use Facebook, we can have we have a better hook, such as use effective this channel.
So here is the use effect locally and see where we use that.
And also Axios exists is used to make requests for the API.
So we get there will be an end point for the documentation search in the documentation.
Here you go to the documentation.
You lava and wine for this.
Yeah, this is the end point.
So this is the API endpoint where we can get the data of this news and everything.
With the help of US search.
Searching.
So for that basically to get the request to make the request, that is where we use Xia's, OK, now
they'll use dispatch and you certainly you are familiar with this.
Does up user input and select block data from users lives?
I hope you are familiar with this.
If you're not familiar, you can review the previous videos.
Another styling really imported from blogger cases.
Best writing We have already done so.
You can see this the page the page had the blogs.
Each blog should reflect the division of each blog.
The images of blog, the span of source name, battery life and everything.
You can just refer to the quote file that you will be getting.
So once we are done with the styling and I will create function, functional blocks and then export
the blocks, so now we'll see what are the color coding is in the next will see this in the next, really?