Playlist access kar lena: kzbin.info/aero/PLu0W_9lII9agx66oZnT6IyhcMIbUMNMdt If you are on Instagram, you can follow me there for more updates on courses & other stuff: Instagram.com/codewithharry
@haseebkhalid48953 жыл бұрын
Code ka link ?
@musheer.ahmed.03 жыл бұрын
Harry bhai ek bug aa rahi hain Jab aap next pay click karte ho first time toh page 1 hi rehta tha
@MdArish-fj5pf3 жыл бұрын
Harry Bhaiya next page par click karne pe page state me update nhi ho raha hai newsupdate chalne ke baad page ko state me change kar raha hai
@SaadAhmed-fp8il2 жыл бұрын
@@musheer.ahmed.0 aap se yeh bug remove ho gaya ???? bcz same issue me bhi face kr rahah hu
@adkathait75692 жыл бұрын
Q&A banado harry bahi #harrybhai
@hamzarajpoot83883 жыл бұрын
Already got 2 hearts from Harry bhi🥰
@theZenyx3 жыл бұрын
Now 3
@axnplayz3483 Жыл бұрын
There is one problem in Harry's code and that is in "UpdateNews function". When the user clicks in next btn then the same page which is page=1 is repeating again. When i click on next then i am getting the same news as it was in page=1 and after 2 pages the news are different. u can check it on 7:30
@armaan.nagpuri Жыл бұрын
Experiencing same problem...
@axnplayz3483 Жыл бұрын
To solve it:- simple add +1 in page state
@akhil_Khatrii11 ай бұрын
Bro mera news api limit kal khtm ho gyi thi aj 24 hour bad chlaya fer dubara 24 hour likha ara h resetting time 😢
@ahmadparizaad10 ай бұрын
@@axnplayz3483 +1 is already added
@divyangsurani24198 ай бұрын
toh bhai hum usme koi bhi nayi gmail se dusri id banake api code leke change kar doge toh chalega it is work@@akhil_Khatrii
@priyampatel31443 жыл бұрын
Harry Bhai! I dont know if i am too late to tell you this...I am currently learning Java Language from your tutorials, and to be honest :) I am literally so thankful to you for making such amazing tutorials, it is very helpful and easy to learn :)
@suparnatripathi89922 жыл бұрын
In this video there is a bug in componentDidMount method Next button is not working we are getting undefined in page variable
@subhojit174198411 ай бұрын
Resolved that by setting this.setState({page: --this.state.page}) inside previous and this.setState({page: ++this.state.page}) inside next button
@KalpakChakraborty11 ай бұрын
@@subhojit1741984 this was helpful. Thanks. Also Saw a updateState function. Could use that method after researching about it
@bhaveshjhawar9532 Жыл бұрын
For any new learner facing problem with the refactored code i.e(next button is showing the next page after second click) ........... Simply do this ---> handlePrevClick=async()=> { await this.setState({page:this.state.page-1}) this.updateNews() } handleNextClick= async()=> { await this.setState({page:this.state.page+1}) this.updateNews() }
@harshilpatel3389 Жыл бұрын
Thanks bhai it worked. why this needs await please explain
@lame66787 ай бұрын
thanks bro
@vanshikasoni69503 ай бұрын
Thanks buddy... It worked!
@ahmadrasheed2598Ай бұрын
@@harshilpatel3389 setState is Asynchronous thats why
@tapassamanta58483 жыл бұрын
Getting the hearts from him made this react course more attractive
@shreshthavbisht16882 жыл бұрын
Sir there is an error in the news app when you click to the next button the same page is reloading instead of next page 😅 please check and correct me if I am wrong. Thank you so much for this couse ❤️
@mihirbari_mb2 жыл бұрын
ya got same problem, did you get any solution
@sanjaysaha11202 жыл бұрын
same problem.
@prince31802 жыл бұрын
@@sanjaysaha1120 next or prev btn mai 2nd parameter daal ke usse as a call back function receive karo
@timepassscript2 жыл бұрын
its very easy await this.setState({page:this.state.page-1}) just add await in front of this.setstate(); hope this helps
@lol_iris2372 жыл бұрын
@@timepassscript thanks, it works
@navpan183 жыл бұрын
Hats off to this guy , this much hardwork for us for free ❤️❤️❤️❤️
@haseebraza87872 жыл бұрын
harry bhai is video m jo 1st page h wo 2 br load hota jb hm next button pr click krty wo phr se load hota or us k bd next page pr jata click krny se
@itsmytechnology92853 жыл бұрын
This React Course is Very Very Helpful 🔥
@shivangkhandelwal3343 жыл бұрын
Yaar Harry Bhai m ye series abhi dekh to nhi rha but manna padega aapki dedication ko...is frequency se videos aate hue mene pehle kbhi nhi dekha ! HATS OFF 🙇♂️
@starkendeavours70723 жыл бұрын
I'll catch up with this React Course soon, I'm learning CSS and Javascript from your channel Harry Sir ♥
@anonymousgerman28092 жыл бұрын
What's the update sir!
@Karthik-kt243 жыл бұрын
Really Reallyy Appreciate your efforts bhaiya🙏🙏🙏🙇♂️🙇♂️🙇♂️ You are a savior Thank you for working so hard to make all these easily understandable tutorials!! We really cant thank u enough Harry Bhai🙇♂️♥ I will surely support u once i start earning cause most knowledge i got from you only...Aap sikhate ho toh mushkil se mushkil dikhne wali cheez samaj aane lagti hai...thanku very much...Really underrated Teacher in the whole world🙏🙏🙏💯
@mohituniyal73 жыл бұрын
I would comment in every video till you don't reply. I am really thankful to you. I didn't have cs in 12th but learned programming c and CPP from your videos and still learning. Moreover, I got a confidence boost. Once again thank you for your efforts.
@CodeWith-Peer Жыл бұрын
For search functionality: Add in Navbar component, 1. constructor(props) { super(props); this.state = { searchInput: '' }; } handleInputChange = (e) => { this.setState({ searchInput: e.target.value }); }; handleSubmit = (e) => { e.preventDefault(); this.props.onSearch(this.state.searchInput); }; 2. Add in App.js 1. constructor() { super(); this.state = { searchQuery: '' }; } handleSearch = (query) => { this.setState({ searchQuery: query }); }; 2. Add in News.js, async componentDidUpdate(prevProps) { if (prevProps.searchQuery !== this.props.searchQuery) { await this.updateNews(); } } *Don't forget to add q param in your API
@arghadeepdey1422 Жыл бұрын
Thanks a lot! I had done the same as you did but had no idea about componentDidUpdate function.
@majharulislam7433 Жыл бұрын
bro can you prove me with the git to see what you did idk why my api not working when i add &q=${encodeURIComponent(this.props.searchQuery)}`;
@zethyst Жыл бұрын
Thanks it worked!! Also I would like to add more intructions, in App.js, inside add
@bulbergaming914211 ай бұрын
why is it not working for me i tried your code
@zethyst11 ай бұрын
@@bulbergaming9142 You gotta understand your codebase and figure out what's causing the trouble on your own kid.
@keshavsharma93803 жыл бұрын
Nothing left to say about u.. literally 12 videos in 24 hrs❤️ u r the savior
@user-wl7ct4qz9m3 жыл бұрын
Bro cn u tell me how to comment out code without removing brackets.
@Hunny_SinghАй бұрын
@@user-wl7ct4qz9m ctrl + /
@abramosekhawas29252 жыл бұрын
Only after pressing next button for 2nd time, different news is visible otherwise same page is shown at 1st next click. Any idea why this is happening?
@anantchandak9574 Жыл бұрын
not happening with me
@CodeWhy3 жыл бұрын
You are the best one my favourite youtuber....☺️☺️☺️☺️
@muhammadaarizimam48903 жыл бұрын
harry bhai, aap ui mast design krte ho or code me to aap professional the hi. Hats off🔥🔥🔥
@stupeee70563 жыл бұрын
Harry bhaii In Android development one common error plz help that is Cannot resolve variable view ..
@Stupeeylife3 жыл бұрын
Yess plz harry bhai same
@nikedits9122 жыл бұрын
Harry bhai ham newsupdate function ki jagah componentdidmount ka use nahi kar sakte kya componentdidmount ko hi next button me state set call kar sakta hai kya?? Harry bhai Or anyone reply plz
@ghulamhasnain8593 жыл бұрын
Thanks for such an amazing video
@gnial20019 ай бұрын
mazaa aa gaya dear harry ... even in 2024 ... happy new year and God bles you!
@sahilhans18673 жыл бұрын
Kitne baar bhi thanks bolun Bhai kam h aapke liye, fir bhi bhai thankyou so much ❤️
@aarush21083 жыл бұрын
This react course is helpful
@allaeibgaming21643 жыл бұрын
Please continue your machine learning course
@rahuldamale96993 жыл бұрын
Hi sirji muze java script se start karna chahiye kya.....? Muze IT me aana hai muze 0 knowledge hai sirf c++ sub hua hai engee me batao plzzz🙏🏻
@unfilteredshivam073 жыл бұрын
Learning programing and Coding is Directly Proportional to Harry🔥
@Pulkit_Jain7 ай бұрын
One fix: this might be happening that on changing news with update news fun with next or prev, the same page loads once(i.e. page is not updated first time) You can fix this by using it with arrow function: this.setState({page : this.state.page+1}, ()=>{this.updateNews();});
@yashh74496 ай бұрын
thank you so much, I was having the same issue
@Pulkit_Jain6 ай бұрын
@@yashh7449 welcome buddy
@HarshitKumar-u4h5 ай бұрын
handlePrevClick = async () => { await this.setState({page: this.state.page - 1 }) await this.upateNews(); } handleNextClick = async () => { await this.setState({page: this.state.page + 1 }) await this.upateNews(); } this problem is happening because (await) is not used as you can see my code . try above code it is correct.
@sandhudevelops5 ай бұрын
Hi pulkit... i tried but didnt work ?
@Pulkit_Jain5 ай бұрын
@@sandhudevelops make sure to debug everything including this
@PIYUSH-lz1zq3 жыл бұрын
Awesome, Bar graph kaise show karva skte hai ??
@allaeibgaming21643 жыл бұрын
Please make course on machine learning
@roktimashraful20852 жыл бұрын
hey herry bhai !! apne notice kara ho ga ? ke jab apne next button pe click kar rahe ho tab page 1 se page 2 par same content dikha raha he jo ki page 1 pe tha , iska solution please ..
@Sumeet_1008 ай бұрын
ha mujhe bhi yahi doubt hai cansome explain this how to remove this error ?
@anonymousmemer96133 жыл бұрын
Bro ek qna video plz
@prasantkumarray63023 жыл бұрын
Harry bhai is the best youtuber for young ones
@carsattitude3 жыл бұрын
Harry bhai web hosting and ka tutorial kab sa aiy ga.
@not_amanullah8 ай бұрын
This react course is helpful ❤
@ItsMyWorld23 жыл бұрын
Unity course plz
@rishabhpandey-cse5thsem-4533 жыл бұрын
🙏🙏🙏Sir ek doubt h sir jo indian railway announcement system Usme sari announcement MP3 file ko play kaise kare ek k 🤔🤔🤔🤔🤔🤔 baad ek🤔🤔🤔🤔🤔
@codinglover28583 жыл бұрын
Thanks guru 🙏🏻🙏🏻
@ishantyagi48623 жыл бұрын
Thanks Harry sir ❤️❤️❤️
@himanshuskatiyar53823 жыл бұрын
Should we apply for masters from abroad , ilets , etc ways to go abroad related video banao Bhai ji plz
@shoaibmulla51113 жыл бұрын
Assalamu aliakum Haris Ali khan bhai❤️❤️❤️
@siddhantchourasia2916 ай бұрын
If someone facing issue like clicking next 2 times you can update the code like below for it to work. It's basically because setState is async so there is a possibility that fetch happens before this setState execution previousPage = async () => { this.setState({page: this.state.page - 1}, () => { this.updateData(); }); }
@HarshitKumar-u4h5 ай бұрын
handlePrevClick = async () => { await this.setState({page: this.state.page - 1 }) await this.upateNews(); } handleNextClick = async () => { await this.setState({page: this.state.page + 1 }) await this.upateNews(); } this problem is happening because (await) is not used as you can see my code . try above code it is correct.
@sandhudevelops5 ай бұрын
Tried but did not worked ?
@ItsMyWorld23 жыл бұрын
Angular playlist plz
@vinitverma3232 жыл бұрын
Hi Just want to point out that after refactoring I noticed a glitch with my code i.e. when we click on next btn for the first time it just refreshes the first page and display the second page on second click and then works fine further, which I noticed in your video as well. I am still trying to solve it. Please have a look at it. btw thanks for your videos, really helpful.
@SAURABHSINGH-xp8dm2 жыл бұрын
Bro I am also facing the same issue. Have you resolved it ?
@ShivamSingh-ic4kh2 жыл бұрын
me too
@gouravkhurana79372 жыл бұрын
@@ShivamSingh-ic4kh See my solution
@sreejitchatterjee44382 жыл бұрын
@@gouravkhurana7937 Where is it?
@timepassscript2 жыл бұрын
its very easy await this.setState({page:this.state.page-1}) just add await in front of this.setstate(); hope this helps
@mohdsaqibansari92073 жыл бұрын
Sir, There is one humble Request to you that...the placements are going on these days.Please make a series of Competitive Programms. Because we students lack in this sometimes. There's no place for us to get used to it. Please do guide us.
@yogeshyts3 жыл бұрын
Competitive Programms se job ni lgti problem slving se lgti h
@Mnssh5646 ай бұрын
Sir when we open newsapp so initially white empty page arrise
@rittwickbhabak73482 жыл бұрын
this react js course is great
@hiphop861 Жыл бұрын
Hat's off to you thank you.
@technicalengineers69033 жыл бұрын
My name is Ashwani, i have noticed a bug, after refactoring the next click function, when we click on next button, first page appears again (second time), further when we click on next button, everything works fine. Please consider it harry bhai...
@udbhavvikramsingh34493 жыл бұрын
How to solve it
@Player-vj4xw2 жыл бұрын
@@udbhavvikramsingh3449 use "await" before setState in prevhandle and next handle this way pageno. will be updated before calling update() function
@hritik88653 жыл бұрын
Harry Bhai infinite scrolling bhi daal do iss app mei next ki jagah
@akashtripathy13343 жыл бұрын
Here in this video there ia a Bug... When we press next the 1st page is render for the send time
@tapassamanta58483 жыл бұрын
CodeWithHarry is never boring😊
@santanukundu87193 жыл бұрын
Sir please continue DSA cource... Please sir
@hoctapit7719 Жыл бұрын
I am a Vietnamese person who looks forward to it, and sincerely wishes you to read this comment. Please turn on subtitles for me thank you
@kirandixit59033 жыл бұрын
Nice. This course is helpful
@arzitmahajan77032 жыл бұрын
After refactoring and using update function when You click the next button for the first time page 1 is rendered which means the user is never able to see the last page please tell the solution
@inderjeetkaur82703 жыл бұрын
Bhaiya can copilot become a nightmare for upcoming developer's job?
@udbhavvikramsingh34493 жыл бұрын
The problem is -- totalResults: 70 is showing but when i am going through all the pages (up to 8) only 38 articals are there in app ,page size set to 5. what is this 🤔🤔
@solankiketul56402 жыл бұрын
same here... plus, when harry bhai goes from 1st page to 2nd then the same 1st page gets loaded again see at 7:23
@hamzaamin88572 жыл бұрын
@@solankiketul5640 if you use await with updateNews() and also with this.setState then it will work fine. actually the state was not setting perfectly but if you use await then it will cause to wait for setting state and then you will get actual result.
@solankiketul56402 жыл бұрын
@@hamzaamin8857 Thank you for the solution
@SAURABHSINGH-xp8dm2 жыл бұрын
@@hamzaamin8857 Thank u . It works
@mohitgupta13812 жыл бұрын
@@hamzaamin8857 Thanks buddy It's work
@sampathacharya52763 жыл бұрын
Harry bhai why r u making videos in the laptop whr did your beast go???
@shivanshu_karn3 жыл бұрын
This video was helpful.....
@tejaskumar44703 жыл бұрын
Harry Bhai is on 🔥🔥🔥
@chillu420 Жыл бұрын
#HELP! don't know why but my app is only using the defaultProps value not the propTypes value that I am sending through app.js i.e. even if I am setting the pageSize=15 in App.js , News.js is using the defaultProps value.
@Amal-qh3uu3 жыл бұрын
Amazing video Harry bhai ❤️
@MrChauhanjaved Жыл бұрын
Thanks
@ashu1764 Жыл бұрын
VUE JS Pe bhi koi course laiye sir ji kab se wait kar rha hu mai.
@ItsMyWorld23 жыл бұрын
Networking plz
@virajmehta42372 жыл бұрын
How can I build a search component that fetches data from the NewsAPI??
@NipunRawat088 ай бұрын
page 1 ka next page 1 hi load ho raha hai and then ek or bar next karne par page 2 pe ja raha ahi or register 3 ho raha hai same problem with previous button
@KishanSheladiya14 ай бұрын
this is because asynchronous nature of state updates in React. when we update the state using setState and immediately call the updateNews in handleNextClick and handlePrevious function the state is not changed .you can use the callback like this .this ensure the updateNews() is called after the state has been updated. handleNextclick = () => { this.setState( (prevState) => ({ page: prevState.page + 1 }), () => this.updateNews() ); }; handlePreviousclick = () => { this.setState( (prevState) => ({ page: prevState.page - 1 }), () => this.updateNews() ); };
@rajann44 Жыл бұрын
Harry Bhai OP 🔥
@arbatheindiangamer3 жыл бұрын
Bhai blogger k upar video bnao ki ham coding s blogger ki templates kese bhai pls Bhai news them
@mumairmughal98652 жыл бұрын
Harry bhai, I have a question! We were using "if(!(this.state.page + 1 > Math.ceil(this.state.totalArticles/this.props.pageSize)) )" to make "Next" button disabled when there are no next pages. But when you added the "updateNews" function, how the next button was disabling without the above "if" condition? Kindly let me know about it. Thanks
@shriyanshagarwal69102 жыл бұрын
render function m ussi button ke tag me disabled lagaya tha issi condition ke sath to function me check karne ki zaroorat nhi h
@mumairmughal98652 жыл бұрын
@@shriyanshagarwal6910 Thanks
@mananbansal93623 жыл бұрын
You Are Legend Sir ❤️💓❤️💓❤️💓
@AmritSingh-yx8ew2 жыл бұрын
Thank you sir
@samuelfrank1369Ай бұрын
Thanks a lot #HarryBhai
@udbhav37603 жыл бұрын
God of coding (harry)
@msbasera2 жыл бұрын
Thank you bhai❤️
@nikhilgarg49523 жыл бұрын
This course is really helpful
@mananbansal93623 жыл бұрын
Love You Harry Bhai
@arzitmahajan77032 жыл бұрын
please check bhai on clicking the next button the first page is rendered not the next page
@rootbattlegrounds7948 Жыл бұрын
HARRY BHAIII IS OP
@codee19493 жыл бұрын
Hello Harry bhai
@rahulermbd Жыл бұрын
Anyone is getting error in the end of the page when loading is not to false, I mean loading is still running when all articles are already fetched.. ? Spinner is running in the end of the page
@saikrishna70043 жыл бұрын
Got likes hatrick from Harry bhai 🥰🥰🤩
@CoderFromMathura3 жыл бұрын
Plzzz sir make video on game development 🙏🙏🙏 using javascript framework
@anonymousmemer96133 жыл бұрын
Bro from where you are
@sainathpatil28203 жыл бұрын
And anyone who is accessing app in mobile will get an error because , in api documentation it is mentioned that api will only work in localhost
@gatplace27383 ай бұрын
My first page newsitem not display but when i click on next then new newsitem display and then i click on previous then my first page newsitem display Please Help me
@swastiksingh91443 жыл бұрын
Hi sir 401 view i am seeing your web development corse and my age is 11 years old hi
@wisdomkhan2 жыл бұрын
Hwne i do the above changes my next and pre buttons don't work as expected and the pageSize is set to API default of 20 for every page.
@progamer-vk2jv3 жыл бұрын
Harry sir aap apke outro ke background music me konsa music use karte hain
@RohanDasRD3 жыл бұрын
Awesome bhau
@adkathait75692 жыл бұрын
Q&A banado hrry bhi #harrybhai
@anonymousmemer96133 жыл бұрын
Bro kya Apne IIT crack Kiya tha
@pravallika_092 жыл бұрын
news daily update karne keliye kya coding karna
@tapassamanta58483 жыл бұрын
I got 4 hearts today. Can I get more one please?
@tapassamanta58483 жыл бұрын
You're awesome
@samarjeetsingh17107 ай бұрын
harry sir yeh jo apne updateNews() wala function bnaya uske baad ab jab next pe click kr rahe hai toh pehli next click pe same page ki news dikha rha lekin jb second time click kro next pe tb agle page ki news dikhata hai PLEASE RESOLVE THE ISSUE
@HarshitKumar-u4h5 ай бұрын
handlePrevClic k = async () => { await this.setState({page: this.state.page - 1 }) await this.upateNews(); } handleNextClick = async () => { await this.setState({page: this.state.page + 1 }) await this.upateNews(); } this problem is happening because (await) is not used as you can see my code . try above code it is correct.
@Mr_Roy68820 күн бұрын
Refectoring news component to use the same function is not working when clicked on the next & previuos button, rendering again on the same page , page not changed
@premanshujha24496 ай бұрын
I dont know if anyone noticed but for 1st 2 clicks,u r getting the same news,means there is a delay in state change.
@HarshitKumar-u4h5 ай бұрын
handlePrevClick = async () => { await this.setState({page: this.state.page - 1 }) await this.upateNews(); } handleNextClick = async () => { await this.setState({page: this.state.page + 1 }) await this.upateNews(); } this problem is happening because (await) is not used as you can see my code . try above code it is correct.
@sandhudevelops5 ай бұрын
Have you solved it i am getting same issue?
@sandhudevelops5 ай бұрын
@@HarshitKumar-u4h i tried but didnt worked dont know whats wrong ?