useLocation Hook in React | Complete React Course in Hindi #59
Вставка
- Опубліковано 11 жов 2024
- useLocation hook: The useLocation hook returns the location object that represents the current URL. You can think about it like a useState that returns a new location whenever the URL changes.
All the source code and other material will be uploaded on codewithharry.com as and when available!
All the source code and other material will be uploaded on codewithharry.com as and when available!
►Checkout my English channel here: / @programmingwithharry
►Instagram: codewithharry
Python, C, C++, Java, JavaScript and Other Cheetsheets [++]:
Playlist: • Coding CheatSheets 🧾 b...
►Learn in One Video[++]:
Python[15 Hr] - • Python Tutorial For Be...
Python Advance[3.5 Hr] - • Python Programming Cou...
Python[1 Hr] - • Learn Python In Hindi ...
Python[2 Hr] - • Python Tutorial In Hin...
Python[15 Min] - • 15 Minute Python Tutor...
JavaScript[1 Hr] - • JavaScript Tutorial
C[1.3 Hr]- • C Programming Tutorial...
php[1 Hr] - • Learn Php In One Video...
php[2.3 Hr] - • Php Tutorial for Begin...
php[Project]- • Login And Registration...
HTML[30 Min] - • HTML 5 Tutorial For Be...
CSS[8.5 Hr] - • CSS Tutorial In Hindi ...
CSS[1.4 Hr] - • CSS 3 Tutorial For Beg...
Wordpress[3.2 Hr] - • How To Make a WordPres...
Angular[2 Hr] - • Angular Tutorial in Hindi
Java[2.3 Hr] - • Java tutorial in hindi 🔥
Web Scraping[1 Hr] - • Web Scraping Tutorial ...
MongoDB[2 Hr] - • MongoDb Tutorial For B...
Numpy[1 Hr] - • Numpy Tutorial in Hindi
Android Dev[12 Hr]- • Android Development Tu...
Linux[1 Hr] - • Linux Tutorial For Beg...
JQuery[1.1 Hr] - • jQuery Tutorial For Be...
Git and GitHub[1.1 Hr] - • Git & GitHub Tutorial ...
►Complete course [playlist]:
React - • React Js Tutorials in ...
Python- • Python Tutorials For A...
OOP Python- • Object Oriented Progra...
Java - • Java Tutorials For Beg...
JavaScript- • JavaScript Tutorials I...
PHP- • PHP Tutorials in Hindi
C- • C Language Tutorials I...
C++- • C++ Tutorials In Hindi
Git & GitHub- • Git and GitHub Tutoria...
Android Dev- • Android Development Tu...
Python GUI- • Python GUI: Tkinter Tu...
Web Development- • Web Development Tutori...
Python Django - • Python Django Tutorial...
Projects Using HTML, CSS & Javascript- • Projects Using HTML, C...
Data Structure and Algo - • Data Structures and Al...
Python Practice programs - • Python Practice Progra...
Basic Python Programs- • [Hindi] Basic Python P...
General Python Errors- • [Solved] General Pytho...
PHP chatroom- • Realtime PHP Chatroom ...
Follow Me On Social Media
►Website (created using Django Rest & Angular) - www.codewithha...
►Facebook - / codewithharry
►Instagram - / codewithharry
Twitter - / haris_is_here
Comment "#HarryBhai" if you read this 😉😉
sir, without useLocation() for toggling active, inactive for navbar,
React router dom gives you another component named use this instead of .
navlink automatically adds active class when current page gets active.
you just have to specify active class name and it's styles (if you want any custom styling for active. ) in css, all other things will be handled by Navlink component.
Yes I have used NavLink instead of Link and it's pretty easy thing. I will suggest use NavLink instead of useLocation Hook.
Yes, Buddy, you are right, and also this technique is short.
+1 must use Navlink instead of using location hook
useNavigate can also be used
The way harry sir explains concepts, it's fabulous ❤️😀
already done sir As you said I already gave my opinion about this awsome series of react in your first video's comment section. Lot's of thanking for you.
This video literally helped me understand a broder concept. Now i can change about content for different features when a particular feature is rendered ❤❤ 👍👍 Thanks👍👍
Review - Very informative and useful course
Thanks a lot harry bhai
Expecting a 💝 from you
Harry bhai तुम हमारे लिए फरिश्ते हो ❤❤❤🙏🙏🙏
Yes
True 🙌
Review:- this course very helpful and it provides complete knowledge about react js
harry bhai DJANGO REST FRAMEWORK next please
internship me Sirf Django nahi chalta hain, sabhi log API project magte हैं... please sir🙏
love from gujarat❤️
Harry vaii you are my superhero 💗 please complete dsa course
While calling the component we can also pass them as props like "Home" , "About" etc
Harry Bhai 🔥🔥
Brother we also use navLink instead of Link thrn we don't need to use useLocation hook
This course is fantastic Harry bhai 🤝
Thank you for explaining so nicely
The fantabulous work u are doing harrybhai
Khan Bhai you are the legend in every programming language
Thanks!
Harry vaii please complete dsa course 🙏 need graph theory 💗🙏🙏🙏🙏
Love You Harry bhai
Thanks
Happy New Year Harry Bhai My this year beginning with you Harry Bhai 😍🎉🥳 Thankyou for this amazing Course.
Review - Has told in the previous video harry bhai.
Try to make a project which uses redux or the all new redux tool kit.
If thats there then this course will be a complete package for anyone who wants to learn react. Full from front to back
Harry bhai C or Cpp me bhi kuch projects hamen krwa iss tutorial series ke baad. Jaise ki aapne Python or Php or Javascript me krwa rkhe h
Best bhai
Harry Bhai.... How to use useLocation in Class Based Component?
useLocation Hook is Awesome !
done harry bhai
Harry vaii please complete dsa course 💗🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 please 🙏🙏🙏🙏🙏 please 🙏🙏🙏🙏🙏🙏🙏
best
Love from , IIMT College greater Noida date:- 21-09-21 😀♥️🙏🔥🔥♥️🔥♥️🔥🔥
Please make a video on python project for stock trading and analysis.🙏
Can you make a video on useRef vs useState? When should we use useRef instead of useState?
Op mere bap kitna gyan he tumhare andar
Harry bhai op h
Harry Bhaiii React Native ka bhi tutorial banaye
7:45
59 Lecture done with code
5:27
Harry bhaiya mere intelijide install Karne ke bad Vs cod nayi chal Raha please help me 🙏🙏🙏 bhaiya 🙏
MySQL full course and git cheatsheet please 🙏🏻🥺
😍♥
Can You make unity or unreal or game development course?
i like to make games?
💚💚💚
❤
Doubt / problem: Where did we use prop.children in context api
You can use props. children in React in order to access and utilize what you put inside the open and closing tags when you are creating an instance of a component.
Bhaiya video ki settings mai quality unavailable aara hai aapki
Dbms ka bhi bana do bhai plzz 🙏
Please bhaiya 🙏🙏🙏
Please bhaiya 🙏
Please 🙏
Thanks bhaei please give me heart
Review Likhdiya
Godot Game Engine's .GD script tutorial please
Please explain the way you were explaining before 2 years
"Uncaught Error: useLocation() may be used only in the context of a component."
some one tell me how to resolve this error....please
😂
Pls use router v6
Jis bhi components ko wrap kar rha hai, usi components ke andar use kar sakte ho useLocation().
First 🔥
Harry bro hacking ki video bana plx
जब हम किसी वेब डेवलपर को कोई वेब प्रोजेक्ट देते है तब सेफ्टी और सेकुरिटी के लिए हम क्या क्या कर सकते है ताकि bahivshya में डावलोपर को कोई भी परेशानी न हो और owner को भी अपने busness चोरी होने या खोने या छीन जाने का डर न हो अपने प्रोडक्ट और आईडिया और सेक्रेट्स को लेकर।
अभी तक मुझे कोई वीडियो नही मिला है
Code With Harry Come With Sundeep Maheshwarii!
*Help me sir*
Bro quality ka option nahi hai
1st
Sir I am a biology graduate I have passion for coding....how can I persue it as a career
First!
👍
sir not use useLocation in reactjs
Yar Aten sub Kuch kase sekha ha. kabe ase pa video bano 🤷🤔
Hi
Godot Game Engine .gd Language Tutorial please
I skipped all the backend concepts..it feels like you are just trying to complete project
Read Comment is the best way to solve any problems 💯♥️
javascrip tutriul
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
I am bca students
Plz
1 minute ago I guess I'm early
Second
Is anyone watching this playlist in 2023
And facing the issue while testing the API that
Cannot post/api/auth/registrations.
Please help to solve this error.
Bhai help me
93rd like
Please give heart and shout out 🙏🙏🙏😭😭❤️❤️
please bro help me
Plz pin me harrybhai
Can I get pinned🤔🤔🤔🤔
This course isn’t helpful sorry Harry bhai but aap help hi nhi kar rhe
Kyun bhai.!
@@subhu143 meri react app create hi nhi ho rhi usmein vo node modules wala folder download hone ke baad vo freeze ho jaa rha hai and aage badh hi nhi rha
What do you expect him to do then? Come to your home to solve each and every single doubt of yours!?
@@grimreaper4033 he can make a video on it maybe many others are facing the same problem
@@divyamagarwal4220 no it is all good ......try it again peacefully
BHAIYA ME YE REACT ROUTER DOM USE HI na kr parah its says "react-dom.development.js:18687 The above error occurred in the component:
at Router (localhost:3000/static/js/bundle.js:40197:15)
at App '
kisi bi trha se na hora ye thiiiiiik
mne import router kia ta routes or route
Thanks
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Second
1st
Please bhaiya 🙏🙏
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}
Sir please rent a droplet on digital ocean for Android development and install window in Droplet in affordable price { please sir 😭😭😭😭😭😭😭 } { i don't able to afford a heavy pc of 50,000} { please sir}