Responsive Navbar in React using React Router | Beginner Tutorial

Поделиться
HTML-код
  • Опубликовано: 20 июн 2023
  • Learn how to make a responsive navbar in React using React Router. The navbar shows the active page, highlights links on hover, and sticks to the top of the page on scrolling. This project is a great introduction to the basics of routing in react using React Router.
    🚨 Break into a software dev career with this free course from CourseCareers! - coursecareers.com/a/TechStack... 🚨
    Discord - / discord
    Subscribe - / @code_complete
    ☕ Donate to support the channel! - www.buymeacoffee.com/CodeComp...
    -- 🌟 Useful Tools and Software 🌟 --
    🌐 10% off domains at Domain.com (use code DOMAIN10) - domain.mno8.net/CodeComplete
    ☁️ FREE $100 for server hosting on Linode - linode.gvw92c.net/CodeComplete
    📚 30% off annual Skillshare membership (use code annual30aff) - skillshare.eqcm.net/CodeComplete
    -- 🔗 Links 🔗 --
    💻 Code - github.com/CodeCompleteYT/rea...
    DISCLAIMER: Some of the links in the description are affiliate links. The channel will receive a small commission from any sales from these links, but there is no extra charge to you. Thanks for supporting the channel so I can keep making these free tutorials!

Комментарии • 59

  • @Code_Complete
    @Code_Complete  4 месяца назад +2

    Have questions or feedback? Head over to our Discord server! discord.gg/TWBtv5an7N
    Solve advanced programming challenges and become an expert software engineer with CodeCrafters! 40% discount on your membership - app.codecrafters.io/join?via=CodeCompleteYT

  • @Nop3.1
    @Nop3.1 3 месяца назад +5

    I really appreciate this man. There a billion ways to make a navbar and very few of them are friendly to the beginner. thanks for the introduction!

  • @chrisdavis1508
    @chrisdavis1508 2 месяца назад +4

    I loved how you broke down the 'why' as you were going along! that was SUPER helpful from a backend guy that struggles with the 'WHY' of CSS!! Thank you

    • @Code_Complete
      @Code_Complete  Месяц назад +1

      CSS can be confusing sometimes haha, glad it helped!

    • @user-dm5mr5tw1e
      @user-dm5mr5tw1e Месяц назад

      Midway through the video, I wanted to make the same color. I really appreciate all the why explanations. Great video.

  • @fletcherrat337
    @fletcherrat337 9 месяцев назад +3

    Exactly what I needed right when I needed it. Ty for the vid and the repo!! Really helpful to a beginner

  • @lrachelparaiso7334
    @lrachelparaiso7334 5 месяцев назад +2

    Clear, precise & very helpful! 👍👍👍Thank you…pls keep making these tutorials! ✅✅✅

  • @phongto3137
    @phongto3137 27 дней назад

    Thanks for the super helpful video! I really love your explanation along the way! Keep up the good work!

  • @user-fe6sj2yd8c
    @user-fe6sj2yd8c 7 месяцев назад +4

    I’m 3 mins in and I’m already sure this would be prefect for me. Love your style of explanation. Precise, straight to the point and your pronunciation is clearest I’ve heard from an Indian RUclipsr🤌🤍

  • @rhamseysgarcia2287
    @rhamseysgarcia2287 10 месяцев назад +1

    Best up to date tutorial

  • @lalaniwerake881
    @lalaniwerake881 7 месяцев назад +1

    great tutorial!. Thank you!!!

  • @abhinand2682
    @abhinand2682 Месяц назад +1

    Thank you... Excellent tutorial

  • @faizaislam6191
    @faizaislam6191 Месяц назад

    very helpful and easy to understnad especially for beginner, thank you

  • @chaand3423
    @chaand3423 10 месяцев назад +2

    good stuff, well explained too :D

  • @usamashahid6701
    @usamashahid6701 11 месяцев назад +2

    Excellent Tutorial..

  • @Gaamaa-oz5ef2lf3n
    @Gaamaa-oz5ef2lf3n 2 месяца назад +1

    Simple and excellent explanation !
    4 star

  • @25-cse-csmohitkumarmandal59
    @25-cse-csmohitkumarmandal59 3 месяца назад +3

    Easiest Explanation to the point ❤❤

  • @senalchandrasekara8874
    @senalchandrasekara8874 8 месяцев назад +2

    Great vid! A tad bit of feedback if I may, the menu doesn't close when clicked elsewhere (Need to click specifically on the hamburger lines). A simple solution might the use of useEffect hook to listen for a mouse click and gauge whether it is within the borders of the menu or not, and then the useRef hook to refer to the relevant div in the rendered HTML and ensure the open/close state of the menu is toggled accordingly. current.contains(e.target) returns a boolean indicating whether the click was within the borders of the menu or not.

  • @abhinavs2484
    @abhinavs2484 3 месяца назад

    Awesome! appreciate!

  • @user-qf5wx1oc2y
    @user-qf5wx1oc2y 22 дня назад

    Thank you 🙏

  • @aryangohel9967
    @aryangohel9967 5 месяцев назад

    Thank a lot sir helped me a lot ❤

  • @gohelboy
    @gohelboy 5 месяцев назад +1

    Great video

  • @glefordbanglayan5322
    @glefordbanglayan5322 3 месяца назад

    GOOD JOB BROTHER THANK YOU SO MUCH

  • @jawadsherazi6954
    @jawadsherazi6954 10 месяцев назад +1

    Thank you So much

  • @reconnect3342
    @reconnect3342 2 месяца назад +1

    Thanks..Man !

  • @godofwar8262
    @godofwar8262 9 месяцев назад +3

    Keep making videos Don't stop

  • @ferrouswroughtnaut3230
    @ferrouswroughtnaut3230 11 месяцев назад +1

    Nice Tutorial

  • @devrodSantos
    @devrodSantos 3 месяца назад +1

    Thank you very much

  • @Anonymous____________A721
    @Anonymous____________A721 4 месяца назад +1

    Excellent

  • @ayshasaddi8963
    @ayshasaddi8963 4 месяца назад +1

    Great video! Thanks!

  • @shamsliaqat4732
    @shamsliaqat4732 5 месяцев назад

    Thanks Buddy

  • @abduab5453
    @abduab5453 3 месяца назад +1

    thank you

  • @CodeJourneyWithRahul
    @CodeJourneyWithRahul 3 месяца назад +2

    Thanks

  • @yourdady8448
    @yourdady8448 8 месяцев назад +1

    love you bro
    live long life

  • @Shaburu69
    @Shaburu69 10 месяцев назад +2

    around the 22:52 mark how do you get the background to take the entire 100% width? the same CSS doesnt work for me haha

  • @always_code
    @always_code 4 месяца назад +1

    Wow Excellent Video🤩🤩🤩

  • @Threenineswon20racks
    @Threenineswon20racks 6 месяцев назад

    I probably missed something , but how are you rendering this to the page without “export default App;”

  • @DailyMadnesz
    @DailyMadnesz 10 месяцев назад

    Hey man, I've been looking for someone that can tell me what the cpm for react tutorials channels is. could you please tell me what the current cpm is?

  • @adeebrahman5798
    @adeebrahman5798 8 месяцев назад

    How can we animate the drop-down list when the bars are clicked
    Plz help

  • @dailyDiary213
    @dailyDiary213 10 месяцев назад

    in my case this active link color also appears for website what should i do

  • @jasim17
    @jasim17 2 месяца назад

    pls explain difference between BrowserRouter vs createBrowserRouter.. and make a tutorial for it..

  • @user-dp7cx3kg4t
    @user-dp7cx3kg4t 3 месяца назад

    Я еще добавила функцию, которая закрывает меню после перехода по ссылке. Возможно, стоит давать классы по БЭМ или же использовать css-модули. Но в целом мне все нравится, спасибо)

  • @velumani2980
    @velumani2980 11 месяцев назад +1

    How to routes to single page web apps like portfolio, (i.e). When the touch the navber that scroll down to that content..

    • @bigazTV
      @bigazTV 10 месяцев назад

      I use react-scroll module and also useLocation

  • @malcomk
    @malcomk 3 месяца назад +1

    Sir, around 9:30 as soon as we start adding route, the website started go white. And nothing shows since then even though I continued following the instruction and updated css for nav, app, etc. would you have any idea why the pages go blank as soon as I started writing code with routes?

    • @MrRoy69
      @MrRoy69 3 месяца назад +1

      same issue did you resolved it?

  • @sujatha204
    @sujatha204 4 месяца назад +1

    shall we write in visual studio code? because the files are in jsx

    • @Code_Complete
      @Code_Complete  4 месяца назад

      Yup you can use VS Code or any editor you like, just know that when using Vite you have to name the files .jsx

    • @sujatha204
      @sujatha204 3 месяца назад

      Tq🎉​@@Code_Complete

  • @swarup868
    @swarup868 16 дней назад

    why sapn elements are used

  • @CartoonKingdom99
    @CartoonKingdom99 3 месяца назад

    abe yrr ky akr raha he link add krna acche se samjhana tha khan kon si cheez import karni he tu laga hua styling karne

  • @user-hq1yj4wd2u
    @user-hq1yj4wd2u 8 месяцев назад

    ul taking space and it is not proper

  • @julianadelosrios9876
    @julianadelosrios9876 9 месяцев назад

    help please Uncaught TypeError: Cannot destructure property 'basename' of 'React2.useContext(...)' as it is null.
    at LinkWithRef (index.tsx:529:11)
    at renderWithHooks (react-dom.development.js:16305:18)
    at updateForwardRef (react-dom.development.js:19226:20)
    at beginWork (react-dom.development.js:21636:16)
    at beginWork$1 (react-dom.development.js:27426:14)
    at performUnitOfWork (react-dom.development.js:26557:12)
    at workLoopSync (react-dom.development.js:26466:5)
    at renderRootSync (react-dom.development.js:26434:7)
    at recoverFromConcurrentError (react-dom.development.js:25850:20)
    at performConcurrentWorkOnRoot (react-dom.development.js:25750:22)

    • @jayson8111
      @jayson8111 4 месяца назад

      i have the same error, how do you solve this?