Creating Navbar and Routes | Complete React Course in Hindi #56

Поділитися
Вставка
  • Опубліковано 1 лют 2025
  • In this react course, we will see how to learn react using projects.
    This is going to be a project-based course full of real-world react projects.
    Make sure to access the playlist here (Important): • React Js Tutorials in ...
    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 😉😉

КОМЕНТАРІ • 157

  • @akashuday7107
    @akashuday7107 2 роки тому +11

    This comment is from 26-06-2022 for people who are getting errors while using routes try this it'll work like a charm

  • @basudevprodhan3111
    @basudevprodhan3111 3 роки тому +39

    For those who are getting errors on this tutorial has been replaced by Routes

    • @manavdixit3355
      @manavdixit3355 3 роки тому +7

      And to add element we have to use
      instead of

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

      thanks alot

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

      @@manavdixit3355 thank you

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

      whenever I write Navbar my compiler shows error and is not defined. why???

  • @Kaiser_Kroos
    @Kaiser_Kroos Рік тому +4

    I am really happy that you're using bootstrap.
    Since our intention is to learn react js, ur saving our time by concentrating on react js.
    Writing css code or tailwind code are just a waste of time.
    Good job Harry go on.

  • @anandkarna3763
    @anandkarna3763 3 роки тому +4

    Apart from this amazing explanation,5:53 was good too.

  • @prashantadhikari5460
    @prashantadhikari5460 2 роки тому +49

    for those who are facing issue on switch routes, replace switch with routes

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

      I think there have been some updates as routes also do not work anymore!

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

      @@singhm4709 , While doing the import , we should use `BrowserRouter as Router`, then it should work

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

      yeah switch routes is now deprecated

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

      This will work:
      import {
      BrowserRouter,
      Link,
      Route,
      Routes,
      } from "react-router-dom";
      export default function App() {
      return (







      );
      }
      function Home() {
      return (

      Welcome!

      Check out the blog or the{" "}
      users section


      );
      }
      function BlogApp() {
      return (




      );
      }
      function UserApp() {
      return (



      );
      }

    • @SurajGupta-nv4kd
      @SurajGupta-nv4kd Рік тому +1

      Thanks bro it is still working in 2023

  • @MuhammadAdnan2.0
    @MuhammadAdnan2.0 3 роки тому +1

    Main focus react h functionality absolutely right bro , guys don't waste your time learning css just learn react with functionality.... Thanks....

  • @codingkaro3266
    @codingkaro3266 3 роки тому +17

    Careful guys you will get an error for switch used in routers
    is not valid in v6 of React-router-dom it is now replace it and also import it
    now the route format is changes sample given below:-

    Thank you

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

      I think v6 of router dom doesn't support 'exact' anymore. Its added by default in v6

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

      whenever I type Navbar in App.js, my compiler shows error and says Navbar is not defined. why, navbar in my system is not not importing automatically

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

      Really helpful,thanks a lot bro

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

      alooo

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

    UA-cam mein agar mujhe top 5 channels ka naam bolne ko kahe, jinme full dedication ke saath coding sikhaya jata hai, unme sabse pehele apnka naam ayega sir ji. Mai ye hawa nehi de raha, sach bol raha hu❤️

  • @knowledgeTransfer31
    @knowledgeTransfer31 6 місяців тому +1

    Code with harry, one request can you add english captions to all your videos it will be helpful to many of them who don't know hindi😢.

  • @KajalSinghshine
    @KajalSinghshine 3 роки тому +14

    Happy teachers day Harry Bhaiya!! Your videos help us a lot. Thank you for your efforts.

  • @rohittewari6902
    @rohittewari6902 2 роки тому +14

    For those who are getting errors while using switch try this syntax:
    import About from "./components/About";
    import Home from "./components/Home";
    import Navbar from "./components/Navbar";
    import { BrowserRouter, Routes, Route } from "react-router-dom";
    function App() {
    return (









    );
    }
    export default App;

  • @danishbukhari6693
    @danishbukhari6693 3 роки тому +4

    ye hmara navbar he
    ye hmari poori app.js he
    ye hmara home he or ye react ki party ho rahi he was epic 😂😂😂😂
    love you harry bhai ❣

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

    Wow 3 minutes mein 2 videos ?? R a sir ekhi toh dil hai kitni bar de doon aapko??💜❤❤❤

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

    Best teacher ever on youtube... salute to your effort bro :)

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

    for those having switch problem can try this :-
    import {
    BrowserRouter as Router,
    Route,
    Routes,
    Link
    } from "react-router-dom";
    function App() {
    return (












    );
    }

  • @harikeshsingh93
    @harikeshsingh93 3 роки тому +3

    For all those who are getting error
    Script is not exported from react router dom this is because of your react version , so for solving problem find syntax of your version else change react app version for terminal ..I hope it was helpful ✨🙏

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

      bro, pls tell how to resolve it, in detail

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

    You are the best UA-camr
    Hardworking, simple and genius thank you

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

    Happy Teachers Day Harry Bhai 🔥

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

    Happy teacher's day sirrrrrr
    Jio aap hazaaro saal, saal ke din ho pachas hazaar!
    Lots of loveee🧟

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

    Happy Teachers Day Harry Sir ❤️

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

    Thank you Harry Bhai Sach me bout maza aa rha hai iss course me.

  • @ankitchopra2334
    @ankitchopra2334 3 роки тому +3

    I had an issue, my react extension wasn't providing me with the snippets it used to provide earlier. Just switch to a previous version of the extension, it will work 👍

  • @SyedZainshah-b2b
    @SyedZainshah-b2b 6 місяців тому +1

    9:22 Aha Aha

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

    Happy teachers day Harry bhai 💙

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

    Happy teacher's day Harry Bhai

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

    Absolutely sir, bootstrap is best for learning this. You keep going by this

  • @Anonymous-14567-o
    @Anonymous-14567-o 3 роки тому +1

    Thanks for hardwork❤️❤️❤️

  • @nomanjutt8413
    @nomanjutt8413 4 місяці тому

    Great❤

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

    6:05 tussi great ho paaaji

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

    Best MERN stack course in the web.

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

    4:18 I laughed hard when he said "Ïtna copy-paste marenge ki kisine sochi ni hogi"

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

      Itne comments pdunga kisine sochi na hogi

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

    Happy teachers day 🎂🍫🌹🙏

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

    Happy teacher's day sir 🎉🙌

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

    Happy teacher's day♥️

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

    Happy teachers day Harry

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

    This is awesome I have been waiting for .......

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

    For those who are v6.3.0 of react and getting errors in Switch, Link, Router do the following to solve the problem:
    1. For Switch convert it into Routes,
    2. Instead of npm i react-router-dom concurrently type npm i react-router-dom@6 concurrently

  • @HamzaKhan-tj9mk
    @HamzaKhan-tj9mk 2 роки тому

    great sir

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

    feeling well parry Harry Bhai :)

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

    Present from IIMT College, greater Noida date:- 19-09-21 Full Sunday gride 🔥🔥🔥🔥🔥

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

    Happy Teacher's Day Harry Bro

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

    boom courses , thanks a lot

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

    Harry brother please make an new incredible playlist about app development. ( Also beginning to advanced) 🥺 please

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

    Happy teacher day mere guruji
    Ab dil b de do yrr

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

    Sir please make a video with react bootstrap and a full js in one video plsease
    It would be really helpful

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

    import { BrowserRouter as Router, Route, Routes } from 'react-router-dom';

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

    Happy teachers day harry Bhai

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

    return (









    );

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

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

  • @ChiragJogani-h7k
    @ChiragJogani-h7k Рік тому

    turn on format on save setting in vscode

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

    Happy Teachers Day ❣️❣️❣️❣️

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

    new UPDATE:-
    import React from "react";
    import { BrowserRouter, Routes, Route } from "react-router-dom";
    import NavBar from "./components/NavBar";
    import Home from "./components/Home";
    import About from "./components/About";
    function App() {
    return (



    );
    }

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

    Tha bootstrap ki party ho rhi hai is awesome

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

    Thanks

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

    Bhai starting se lekar ending tak sql par vedeo bano

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

    for those who are struggling with blank screen :) replace your code fragment with this one --
    return (









    );

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

      still not working. can you share your code

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

    MySQL full course and git cheatsheet please 🙏🏻🥺.... btw happy teachers day!!❤️

  • @RohitSingh-oh5tp
    @RohitSingh-oh5tp 3 роки тому

    Harry brother please make a video on multi level category menu (Drop down menu) with the help of react js.
    Please.....🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻

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

    any one who get errors by using react-router-dom@6.17.0, add scriptin package.json file
    "start": "react-scripts --openssl-legacy-provider start",
    "build": "react-scripts --openssl-legacy-provider build" and save & run.

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

    tmhari video dekh kar me pchta ri hun.. poora din lga dia is cheez me mgr akhir me new new qissam k error are he.. ab ye children wala error kaah se agya, kabhi switch wala. kabhi routes kro to msla .. poora din lg gya

    • @ayushpandey4490
      @ayushpandey4490 Місяць тому

      co piliot free hai madam use kro codemiuim free extension hai use kro errors htao

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

    react-router-dom@6.17.0, use this line in navigation instead of switch

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

    Good luck

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

    🔥🔥

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

    Make sidebar also

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

    5:59 Humara Yahan react ki party ho rhi hai!!! xd!!

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

    npm uninstall react-router-dom
    And installed version 5.2.0 of react-router-dom:
    npm install react-router-dom@5.2.0

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

    import './App.css';
    import { BrowserRouter, Routes, Route } from "react-router-dom";
    import Navbar from "./components/Navbar";
    import Home from './components/Home';
    import About from './components/About';
    function App() {
    return (









    );
    }
    export default App;

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

    7:47

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

    4:20 harry bhai ke andar joginder a gaya 😂😂😂

  • @ADITYA-qr6il
    @ADITYA-qr6il 3 роки тому +2

    4:17 thara bhai jogindar 🤣🤣😂😂

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

    React js rock on

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

    4:14 harry bhai joginder

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

    Those who are getting probelem during routing pklease replae the switch as reeact in now days dont use switch inatead sue this syntax

  • @24aman
    @24aman 3 роки тому

    4:14 tumhara bhai harry

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

    which is better mui or react bootstrap?

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

    7:13

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

    Hi Harry, thank you so much for the amazing content. I had a question why is the app running on "localhost:3000" when we have previously changed it to port 5000? I am facing the same situation. On terminal it says app listening on "localhost:5000" but the changes are reflected on port 3000.

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

      "localhost:5000" is your node server while port 3000 has react app running

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

    Why switch does not work know in react-router-dom v6

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

    Why you not use .jsx

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

    How can I create a drop-down menu in navbar using react and react Router?

  • @SAMI--CSEB
    @SAMI--CSEB 10 місяців тому

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

    undo karne se bhi wapis aa sackta tha index.html

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

    4:15 Harry bhai Joginder 😂

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

    My nav bar is not reflecting on page i installed react bootstrap also but still its not showing

    • @M.SaadAdil
      @M.SaadAdil 4 місяці тому

      bhai kia kia phir?

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

    Harry bahi mai react router dom install krta hun ek alag package.json file ban jati hai folder k bahir

  • @JamesBond-mc7kl
    @JamesBond-mc7kl 3 роки тому

    React router dom v6 pls

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

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

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

    bhai wo navbar ka css kaha se araha hai ?

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

    im enjoying the party

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

    Screen blank aa rha yr ky kre

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

    2 video

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

    Hello guys, I''m facing an issue in my code. Its saying "Error: Invariant failed: You should not use outside a ". Anyone having this issue? If yes plz reply.

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

      Link element must be inside a Router element
      eg:-
      hi
      Home

  • @5minutestalk
    @5minutestalk Рік тому

    haha .. coming from another channel > where they write just markups and think their tutorial is on React js.
    "Yahan hm React seekhein ge"

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

    //New code for react router dom
    import './App.css';
    import {
    BrowserRouter,
    Routes,
    Route,
    Link,
    Switch,
    } from "react-router-dom";
    import Navbar from './components/Navbar';
    import Home from './components/Home';
    import About from './components/About';
    function App() {
    return (




    );
    }
    export default App;

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

    9:18 lol

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

    Arre thumbnail ni lagaya bhaib

  • @AmitYadav-kr6vf
    @AmitYadav-kr6vf 3 роки тому

    Harry bhaiya aap free fire khelte hain kya

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

    Itna copy paste karenge kisine Sochi na hogi 😂

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

    Please make thumbnail attractive
    Your thumbnail is very bad
    Please sir make it perfect for attracting people
    @codewithharry

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

    I want to develop a multifunctional telegram bot with backend and database.
    Can anyone guide me which Language and database should I learn for it with or any other suggestions.
    I appreciate your help
    Thank you