You should have named the video, 'How to get data from a news api', because all you did was fetch the data and display it. You didn't have a form to get a certain number or a certain category of news. Not a complete application in anyway
If you want search you can use either front end search or API search. API search feature shall be supplied by API provider. But frontend search can be done on JS code with something like Fuse.js
This was basically example for react.js. For getting news for different country you will need to find some news API provider or maybe create your own news API, but that's whole lot of work to do.
Hello, I followed the tutorial exactly but I am getting the error TypeError: Cannot read property 'map' of undefined for > 27 | {this.state.articles.map((item, index) => { Please help, thank you!
Thank you so so much
Good explanation :D
Speed up to 1.25 and it's perfect ;)
Great video, quite basic and can help to understand the structure and working
Thank you. This was an excellent tutorial
Greate!
nice explanation. but can you add further search bar which will search news by categories?
You should have named the video, 'How to get data from a news api', because all you did was fetch the data and display it. You didn't have a form to get a certain number or a certain category of news. Not a complete application in anyway
Well, this is a very quick demo made in very short time. Anyone interested to make an application can work more on it.
Thank you alot Rajat.. good content.
Can you add here all the code's which you doing over here😇
go ahead
Well done. Thank you!
if we refresh the page will the news get updated ?
Yes.
what to do where there is [+1234]
can we add a search engine in this news api ...if yes pls make a tutorial video
If you want search you can use either front end search or API search. API search feature shall be supplied by API provider. But frontend search can be done on JS code with something like Fuse.js
thanks alot. how cant add other news api and other coutries and catergoriys
This was basically example for react.js. For getting news for different country you will need to find some news API provider or maybe create your own news API, but that's whole lot of work to do.
@@rajatmann8897 thanks alot
Hello, I followed the tutorial exactly but I am getting the error TypeError: Cannot read property 'map' of undefined
for > 27 | {this.state.articles.map((item, index) => {
Please help, thank you!
That means that your array variable is undefined. Check using debugger if the array variable is fine or not.
Awesome