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 😉😉

КОМЕНТАРІ • 136

  • @zaiemgaming7303
    @zaiemgaming7303 3 роки тому +45

    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.

    • @shivlochawala2562
      @shivlochawala2562 2 роки тому +2

      Yes I have used NavLink instead of Link and it's pretty easy thing. I will suggest use NavLink instead of useLocation Hook.

    • @WebWegTail
      @WebWegTail 2 роки тому +1

      Yes, Buddy, you are right, and also this technique is short.

    • @ritik_27
      @ritik_27 2 роки тому +1

      +1 must use Navlink instead of using location hook

    • @vashukumar2688
      @vashukumar2688 2 місяці тому

      useNavigate can also be used

  • @kirtiiyer490
    @kirtiiyer490 3 роки тому +13

    The way harry sir explains concepts, it's fabulous ❤️😀

  • @THrishikeshJamgade
    @THrishikeshJamgade 2 роки тому +5

    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.

  • @YashrajJooshi
    @YashrajJooshi 4 місяці тому +1

    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👍👍

  • @siddireddyvignesh
    @siddireddyvignesh 5 днів тому +1

    Review - Very informative and useful course
    Thanks a lot harry bhai
    Expecting a 💝 from you

  • @mandeepmalik77
    @mandeepmalik77 3 роки тому +24

    Harry bhai तुम हमारे लिए फरिश्ते हो ❤❤❤🙏🙏🙏

  • @anandshinde0358
    @anandshinde0358 2 роки тому +2

    Review:- this course very helpful and it provides complete knowledge about react js

  • @ParthivShah
    @ParthivShah 3 роки тому +6

    harry bhai DJANGO REST FRAMEWORK next please
    internship me Sirf Django nahi chalta hain, sabhi log API project magte हैं... please sir🙏
    love from gujarat❤️

  • @mrlight1997
    @mrlight1997 3 роки тому +2

    Harry vaii you are my superhero 💗 please complete dsa course

  • @codesetter2497
    @codesetter2497 9 місяців тому

    While calling the component we can also pass them as props like "Home" , "About" etc

  • @tejaskumar4470
    @tejaskumar4470 3 роки тому +1

    Harry Bhai 🔥🔥

  • @Rahul-jt1ys
    @Rahul-jt1ys Рік тому +1

    Brother we also use navLink instead of Link thrn we don't need to use useLocation hook

  • @deveshyadav2988
    @deveshyadav2988 2 роки тому

    This course is fantastic Harry bhai 🤝

  • @hiphop861
    @hiphop861 Рік тому

    Thank you for explaining so nicely

  • @prajwalpatil9916
    @prajwalpatil9916 3 роки тому

    The fantabulous work u are doing harrybhai

  • @jhs003
    @jhs003 Рік тому

    Khan Bhai you are the legend in every programming language

  • @sohanbairwa203
    @sohanbairwa203 2 роки тому +1

    Thanks!

  • @mrlight1997
    @mrlight1997 3 роки тому +2

    Harry vaii please complete dsa course 🙏 need graph theory 💗🙏🙏🙏🙏

  • @GamingWithZarif
    @GamingWithZarif 3 роки тому

    Love You Harry bhai

  • @MrChauhanjaved
    @MrChauhanjaved Рік тому

    Thanks

  • @prakashrayka7845
    @prakashrayka7845 Рік тому

    Happy New Year Harry Bhai My this year beginning with you Harry Bhai 😍🎉🥳 Thankyou for this amazing Course.

  • @siemen_subbaiah
    @siemen_subbaiah 3 роки тому +1

    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

  • @muhammadaarizimam4890
    @muhammadaarizimam4890 3 роки тому

    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

  • @RohanDasRD
    @RohanDasRD 3 роки тому

    Best bhai

  • @hiteshthepda1694
    @hiteshthepda1694 3 роки тому +1

    Harry Bhai.... How to use useLocation in Class Based Component?

  • @fanaticbark4856
    @fanaticbark4856 3 роки тому

    useLocation Hook is Awesome !

  • @workwithankit7763
    @workwithankit7763 2 роки тому

    done harry bhai

  • @mrlight1997
    @mrlight1997 3 роки тому +2

    Harry vaii please complete dsa course 💗🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 please 🙏🙏🙏🙏🙏 please 🙏🙏🙏🙏🙏🙏🙏

  • @farhansiddiqui7777
    @farhansiddiqui7777 Рік тому

    best

  • @rajatchaurasia3578
    @rajatchaurasia3578 3 роки тому +2

    Love from , IIMT College greater Noida date:- 21-09-21 😀♥️🙏🔥🔥♥️🔥♥️🔥🔥

  • @kali4844
    @kali4844 3 роки тому

    Please make a video on python project for stock trading and analysis.🙏

  • @rahultirkey7950
    @rahultirkey7950 3 роки тому

    Can you make a video on useRef vs useState? When should we use useRef instead of useState?

  • @Usogif7jvs
    @Usogif7jvs 3 роки тому +2

    Op mere bap kitna gyan he tumhare andar

  • @LEGENDX22
    @LEGENDX22 3 роки тому

    Harry bhai op h

  • @hafizhamzaali332
    @hafizhamzaali332 3 роки тому

    Harry Bhaiii React Native ka bhi tutorial banaye

  • @atulsingh7647
    @atulsingh7647 2 роки тому

    7:45

  • @Nishirdaak66
    @Nishirdaak66 Рік тому

    59 Lecture done with code

  • @anirbitroy7263
    @anirbitroy7263 11 місяців тому

    5:27

  • @m2vlogs..monumahatma77
    @m2vlogs..monumahatma77 3 роки тому +1

    Harry bhaiya mere intelijide install Karne ke bad Vs cod nayi chal Raha please help me 🙏🙏🙏 bhaiya 🙏

  • @ojaselawadhi4425
    @ojaselawadhi4425 3 роки тому +1

    MySQL full course and git cheatsheet please 🙏🏻🥺

  • @subhu143
    @subhu143 3 роки тому +2

    😍♥

  • @whatmagic805
    @whatmagic805 3 роки тому

    Can You make unity or unreal or game development course?
    i like to make games?

  • @shashankthapliyal232
    @shashankthapliyal232 3 роки тому

    💚💚💚

  • @satendrabhati2347
    @satendrabhati2347 3 роки тому

  • @udayuppal5043
    @udayuppal5043 2 роки тому

    Doubt / problem: Where did we use prop.children in context api

    • @paraschauhan9978
      @paraschauhan9978 2 роки тому

      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.

  • @Coding_Gurus
    @Coding_Gurus 3 роки тому +1

    Bhaiya video ki settings mai quality unavailable aara hai aapki

  • @uzmakhairdi9681
    @uzmakhairdi9681 3 роки тому

    Dbms ka bhi bana do bhai plzz 🙏

  • @m2vlogs..monumahatma77
    @m2vlogs..monumahatma77 3 роки тому +1

    Please bhaiya 🙏🙏🙏

  • @m2vlogs..monumahatma77
    @m2vlogs..monumahatma77 3 роки тому +1

    Please bhaiya 🙏

  • @m2vlogs..monumahatma77
    @m2vlogs..monumahatma77 3 роки тому +1

    Please 🙏

  • @siddiqajamadar2283
    @siddiqajamadar2283 3 роки тому +1

    Thanks bhaei please give me heart

  • @krishgarg2806
    @krishgarg2806 3 роки тому

    Review Likhdiya

  • @Apurvanotfound
    @Apurvanotfound 3 роки тому +1

    Godot Game Engine's .GD script tutorial please

  • @mahammadsafiq7262
    @mahammadsafiq7262 2 роки тому

    Please explain the way you were explaining before 2 years

  • @happyworld4545
    @happyworld4545 Рік тому +1

    "Uncaught Error: useLocation() may be used only in the context of a component."
    some one tell me how to resolve this error....please

    • @raki0125
      @raki0125 Рік тому

      😂

    • @raki0125
      @raki0125 Рік тому

      Pls use router v6

    • @potaraju92
      @potaraju92 Рік тому

      Jis bhi components ko wrap kar rha hai, usi components ke andar use kar sakte ho useLocation().

  • @itsmytechnology9285
    @itsmytechnology9285 3 роки тому +1

    First 🔥

  • @sumitent
    @sumitent 3 роки тому

    Harry bro hacking ki video bana plx

  • @oklifecaredelhi4257
    @oklifecaredelhi4257 3 роки тому

    जब हम किसी वेब डेवलपर को कोई वेब प्रोजेक्ट देते है तब सेफ्टी और सेकुरिटी के लिए हम क्या क्या कर सकते है ताकि bahivshya में डावलोपर को कोई भी परेशानी न हो और owner को भी अपने busness चोरी होने या खोने या छीन जाने का डर न हो अपने प्रोडक्ट और आईडिया और सेक्रेट्स को लेकर।
    अभी तक मुझे कोई वीडियो नही मिला है

  • @ProgrammingNCodingWithHarsh

    Code With Harry Come With Sundeep Maheshwarii!

  • @rushrdgaming1612
    @rushrdgaming1612 3 роки тому +1

    *Help me sir*

  • @unique58yt
    @unique58yt 3 роки тому

    Bro quality ka option nahi hai

  • @Chhayani390
    @Chhayani390 3 роки тому +1

    1st

  • @BYTE.ALCHEMY
    @BYTE.ALCHEMY 3 роки тому +1

    Sir I am a biology graduate I have passion for coding....how can I persue it as a career

  • @prakharsoni6406
    @prakharsoni6406 3 роки тому +1

    First!

  • @jaiminparmar7515
    @jaiminparmar7515 Рік тому

    sir not use useLocation in reactjs

  • @ZohaibKhan-ux5ng
    @ZohaibKhan-ux5ng 3 роки тому

    Yar Aten sub Kuch kase sekha ha. kabe ase pa video bano 🤷🤔

  • @suraj0797
    @suraj0797 3 роки тому

    Hi

  • @Apurvanotfound
    @Apurvanotfound 3 роки тому

    Godot Game Engine .gd Language Tutorial please

  • @sahilmaharjan3955
    @sahilmaharjan3955 Рік тому

    I skipped all the backend concepts..it feels like you are just trying to complete project

  • @vivekprajapat105
    @vivekprajapat105 2 роки тому

    Read Comment is the best way to solve any problems 💯♥️

  • @mainulislam3704
    @mainulislam3704 3 роки тому

    javascrip tutriul

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому +1

    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}

  • @SumantKumar-kn8nt
    @SumantKumar-kn8nt 3 роки тому

    I am bca students

  • @SumantKumar-kn8nt
    @SumantKumar-kn8nt 3 роки тому

    Plz

  • @sakura_blue_berry8117
    @sakura_blue_berry8117 3 роки тому

    1 minute ago I guess I'm early

  • @ashleshkolhe8981
    @ashleshkolhe8981 3 роки тому

    Second

  • @09avishkargaikwad71
    @09avishkargaikwad71 10 місяців тому

    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.

  • @SumantKumar-kn8nt
    @SumantKumar-kn8nt 3 роки тому

    Bhai help me

  • @FRXGFA
    @FRXGFA 3 роки тому +1

    93rd like

  • @ankitasharma8613
    @ankitasharma8613 3 роки тому

    Please give heart and shout out 🙏🙏🙏😭😭❤️❤️

  • @mainulislam3704
    @mainulislam3704 3 роки тому

    please bro help me

  • @prajwalpatil9916
    @prajwalpatil9916 3 роки тому +1

    Plz pin me harrybhai

  • @VibhorGarg
    @VibhorGarg 3 роки тому

    Can I get pinned🤔🤔🤔🤔

  • @divyamagarwal4220
    @divyamagarwal4220 3 роки тому

    This course isn’t helpful sorry Harry bhai but aap help hi nhi kar rhe

    • @subhu143
      @subhu143 3 роки тому

      Kyun bhai.!

    • @divyamagarwal4220
      @divyamagarwal4220 3 роки тому

      @@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

    • @grimreaper4033
      @grimreaper4033 3 роки тому

      What do you expect him to do then? Come to your home to solve each and every single doubt of yours!?

    • @divyamagarwal4220
      @divyamagarwal4220 3 роки тому

      @@grimreaper4033 he can make a video on it maybe many others are facing the same problem

    • @sheldonchettiar1018
      @sheldonchettiar1018 3 роки тому

      @@divyamagarwal4220 no it is all good ......try it again peacefully

  • @sumittimori834
    @sumittimori834 2 роки тому

    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

  • @dwkiller1942
    @dwkiller1942 Рік тому

  • @udayan285
    @udayan285 2 роки тому

    Thanks

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому +1

    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}

  • @superbits1947
    @superbits1947 3 роки тому

    Second

  • @__fact
    @__fact 3 роки тому

    1st

  • @m2vlogs..monumahatma77
    @m2vlogs..monumahatma77 3 роки тому +1

    Please bhaiya 🙏🙏

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому +1

    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}

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому +1

    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}

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому +1

    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}

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому +1

    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}

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому +1

    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}

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому

    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}

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому

    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}

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому

    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}

  • @deepanshusaini6242
    @deepanshusaini6242 3 роки тому

    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}