React Sidebar Navigation Menu Tutorial - Beginner React JS Project Using Hooks & Router

Поделиться
HTML-код
  • Опубликовано: 29 апр 2024
  • Learn how to make a React Sidebar Navigation Menu in this beginner tutorial. We will be using React Hooks, Router, and React Icons in this project. You will be able to open and close the sidebar menu with a simple click and you can easily add this to any of your React websites.
    If you want to follow me along my coding journey, be sure to subscribe :)
    / @briandesign
    Timestamp
    0:00 What we are building
    0:39 Creating React App
    3:44 Creating our components folder
    4:26 Creating our pages folder
    7:45 Installing React Icons
    10:24 Importing React Router Link
    16:42 Editing our SidebarData file
    21:00 Displaying Data on website
    23:25 Adding Navbar CSS
    34:24 Adding React Routes to display page
    React Navbar Dropdown Menu Tutorial
    • React Navbar Dropdown ...
    Responsive React Website Tutorial
    • React Website Responsi...
    Source code
    github.com/briancodex/react-s...

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

  • @briandesign
    @briandesign  Год назад +2

    Watch my updated React Sidebar Tutorial Using React Router v6.4
    ruclips.net/video/zQBd3hNXJgI/видео.html

    • @antdx316
      @antdx316 Год назад

      It says
      Could not find a required file.
      Name: index.html
      after doing npm start

  • @farbodAprin
    @farbodAprin 2 года назад +114

    Dear new coder and Brian,
    probably new versions.
    in react-router-dom v6, "Switch" is replaced by routes "Routes". You need to update the import from
    import { Switch, Route } from "react-router-dom";
    to
    import { Routes ,Route } from 'react-router-dom';

    • @realexo-lforever4591
      @realexo-lforever4591 2 года назад +1

      thank u

    • @mysim35
      @mysim35 2 года назад

      @Brian Design pin this

    • @mervebilgin5728
      @mervebilgin5728 2 года назад

      thanks for everything..

    • @kevinmo8525
      @kevinmo8525 Год назад +6

      Not sure if this is affecting anyone but they changed "component" from route to "element" and inside the curly braces, you put .

    • @viniciusbernardo2112
      @viniciusbernardo2112 Год назад

      Thanks Brother, it helped a lot !!

  • @eliasvet6742
    @eliasvet6742 2 года назад +8

    Had been searching for a proper sidebar tutorial for a while. So glad I came across this amazing video. Clearly explained and just the right pace for me. Thank you so much!

  • @uumza555
    @uumza555 3 года назад +16

    I practiced a few times with this tutorial, now I understand about react and how to handle with font-end in basic. Thank you so much Brian you made my coding better.

    • @briandesign
      @briandesign  3 года назад

      Thanks uumza! glad it was helpful

  • @shraddhaholay5093
    @shraddhaholay5093 Год назад +18

    Dear new coder and Brian,
    In app.js you may need to make the changes as below for retrieving the pages:







    Great video Thanks brian !

    • @heykike
      @heykike Год назад +2

      you, the MVP : ) thank you, I spent a lot of time debugging and didn't understand why no page got rendered

    • @bensche28
      @bensche28 Год назад +1

      I tried to fix this issue for hours!!!!!!!!!!!!!!!
      Thx so much

    • @briandesign
      @briandesign  Год назад +3

      I just made a new version so you can see it using v6.4 of react router

    • @amitabhkumar7671
      @amitabhkumar7671 Год назад

      @@briandesign Thankyou sir

  • @NemethAdamBefektetes
    @NemethAdamBefektetes 2 года назад +1

    It was insanely helpful! Thanks a lot! Just started creating my React portfolio website and this navbar is perfect!

  • @100dounuts
    @100dounuts 3 года назад

    Added this to my project very easily, thank you! the icons you showed me will make my website look wayyy better lol

  • @TheSiterfufun
    @TheSiterfufun 2 года назад

    It was a short video and very simple step to follow, I'll check out for more of your clips. Thank you so much!! You made my life learning React easier.

  • @azula9714
    @azula9714 3 года назад

    Got this up and running on my newest project. works like a charm. Thanks, Brian.

  • @nwakakizito4572
    @nwakakizito4572 3 года назад +4

    Thank Youu !😁
    Simplified my project with new vs code tricks I’ve learnt along the way. I like how u run into errors and explain the causes

  • @lionelemanuelson
    @lionelemanuelson 3 года назад

    Brian thank you so much!!! the video was very clear, straight to the point. looking forward to more videos of ReactJs

  • @duncangroenewald
    @duncangroenewald 3 года назад

    Brilliant mate - the first tutorial where critical steps are not skipped and everything works exactly as your does !! Too many tutorials out there that leave you stuck because they forgot to mention that installed some required component... Nice work !

    • @briandesign
      @briandesign  3 года назад

      Thanks Duncan!

    • @duncangroenewald
      @duncangroenewald 3 года назад

      @@briandesign Now perhaps you an show us how to create a sidebar menu that stays in place and updates the content in the main panel - like most desktop and iPad applications. Still amazes me how hard it is to create a split view with a sidebar menu on the left and the details panel on the right. Surely there must be some standard widget for doing this - oh SwiftUI hmm!

  • @keshavrajacharya1145
    @keshavrajacharya1145 3 года назад

    very easy and smooth. I liked the video . There is another option we could add is, based on the boolean value of sidebar (state)we can decide whether to show the whole nav-menu component by removing left-margin= -100% value by using a curly closing bracket.
    Anyway thank you very much for your wonderful nice tutorial.

  • @FIFAcepalm
    @FIFAcepalm 3 года назад +11

    You should be targeting 'transform: translateX' in your animation rather than 'left' for smooth animations. Left triggers the reflow where as transform only the repaint.

  • @chrisyoonful
    @chrisyoonful 3 года назад +22

    was able to implement this into my project pretty seamlessly. thanks!

  • @jaYD13473
    @jaYD13473 2 года назад +2

    Thanks for starting it up from basically square one. So many tutorials I've looked at just figure we already know a bunch of stuff and leave me wondering, "Okay. Should I delete this file? Should I have two of index.js? Um why does everything I do error out?" and then you just walk away frustrated. This really starts from "I know nothing" and helps the learner build from there.

  • @cleaningspy
    @cleaningspy 2 года назад

    I really enjoy every second! Love you Brian keep continuing...

  • @AdamElMou
    @AdamElMou 2 года назад +2

    This is the first time i make a sideBar, and damn it was so easy i thought it was complcated, thanks u brian for your help, definitly gonna like and subscribe

  • @melmelcoolj0
    @melmelcoolj0 3 года назад

    This was a lifesaver. THANK YOU!!!

  • @jadmatta7122
    @jadmatta7122 3 года назад +8

    Thank you! This was so helpful and I really understood everything you did. Once again, thank you for such an amazing tutorial!

  • @jordanmielbrecht3435
    @jordanmielbrecht3435 3 года назад +1

    Thank you dude, this was EXACTLY what I needed for my senior project. Learned a lot about React along the way!

  • @jenniferwong296
    @jenniferwong296 2 года назад +1

    This was awesome! Thank you!!! Really loved the explanation. Could be helpful to have the exact things we need to install via terminal :)

  • @eftiprwtopapadakis9310
    @eftiprwtopapadakis9310 3 года назад

    Amazing tutorial! you made so simple also the dynamic content on a react site.

  • @fubespu
    @fubespu 2 года назад

    Super amazing dude, straight forward and easy to understand!

  • @straighter100
    @straighter100 2 года назад

    I'm going through the code on github and my god I never realized how we could achieve such a slick UI with such less code!!! I really wish I had gotten into react sooner!!!

  • @jenniferkadri3769
    @jenniferkadri3769 Год назад

    Thank you so much ! I created a Sidebar.jsx and put in it the data array directly and it worked with a little bit of changes :D

  • @noriyukiishii4752
    @noriyukiishii4752 3 года назад

    thank you! this video is very easy to follow and understand what's going on!

  • @Yousaiditismychoice
    @Yousaiditismychoice 3 года назад +5

    Really great tutorial! Super simple to follow and very easy to go further from here. I was looking for something like this for a while now ;) Thanks!

  • @quemgabriel
    @quemgabriel 3 года назад

    thank you! Now I'm learning to use inside a top bar you teach, thank you !

  • @veronicaisla9597
    @veronicaisla9597 Год назад

    Thanks for the video, it was really easy to follow and the finish result looks great!!!

  • @pixelerator1543
    @pixelerator1543 2 года назад

    I love this channel, your codes are most clean to understand

  • @the303Dragon
    @the303Dragon 2 года назад

    Solid, I'll check out your video on adding drop down in the sidebar, next. Appreciate it!

  • @nathanbrews9951
    @nathanbrews9951 3 года назад +3

    I like how you dont jump around the screen all the time, my guy, I had to import all pages as:- import Home from './components/pages/Home';
    etc
    Good Video

  • @harikajayanthi6357
    @harikajayanthi6357 2 года назад

    Thank you!! This really helped us in our project

  • @salafiyyahnetworkdansadau9291
    @salafiyyahnetworkdansadau9291 3 года назад

    Wow! This is awesome bro!! Before i know you i have an extremely thirsty of React, but now i got a pleasant drink to take away my thirsty, thanks alot bro🙌🙌🙌

  • @techjavaid6177
    @techjavaid6177 3 года назад +2

    Love the design and simplicity.. Waiting for more cool projects like this- plz do more react stuff.
    Can i suggest some small projects?

  • @Vivi-Price
    @Vivi-Price 2 года назад

    Thank you for this video! It was a huge help👏🏾

  • @Anne-kz4fi
    @Anne-kz4fi 2 года назад

    Awesome tutorial! Just finished the whole thing and actually enjoyed the process. Thank you! Please keep small project tutorials coming.

  • @_zishio
    @_zishio 2 года назад

    Really explanatory!! Good job and thank you!

  • @silentxcure
    @silentxcure 3 года назад

    idk how...but i never replicated a tutorial before without issues. I replicated this tutorial and had zero issues on the first try. Tells a lot about how efficient your tutorials are. Thanks!

  • @anamarion5671
    @anamarion5671 3 года назад

    Very clear. Helped me a lot. Thank you! You earned a sub.

  • @Mishanrajshah
    @Mishanrajshah 28 дней назад

    simple and straight forward video. keep it up

  • @luc4y1
    @luc4y1 3 года назад

    this is amazing! thank you for the content!

  • @elyasarkin0991
    @elyasarkin0991 3 года назад

    Thank you so much for this! :)

  • @mreksasanjaya8672
    @mreksasanjaya8672 2 года назад

    This is what I need, thanks man!

  • @rugant3279
    @rugant3279 3 года назад

    Great Job Brain! the videois right on point, thank you

  • @wendixiao9275
    @wendixiao9275 Год назад

    Thanks for the tutorial, very details explaination!!

  • @MrJahanzaib97
    @MrJahanzaib97 2 года назад

    Amazing!
    Insanely helpful.

  • @Phyx1u5
    @Phyx1u5 3 года назад

    you are an awesome teacher thanks! very easy to follow along

  • @rizkydrma
    @rizkydrma 3 года назад

    Simple and very useful, thanks!

  • @victordallarosateixeira6226
    @victordallarosateixeira6226 3 года назад

    Amazing tutorial, got urself a new follower!

  • @sarikyas.m.4477
    @sarikyas.m.4477 3 года назад

    Thank you so much. Got it working exactly as u showed

  • @heykike
    @heykike Год назад +1

    A couple of years later, this tutorial is still amazing!
    And you drop a lot of cool tips for noobs like me.
    thank you!

  • @sajalagrawal1430
    @sajalagrawal1430 3 года назад

    hi brian , i want to hats off to you man , you are awesome . please continue such awesome content , like different types of navbar , designing different small components in react like that . i like all your videos

  • @zackguerra
    @zackguerra 3 года назад

    Badabin Badaboom! LOL.. works Perfectly buddy! Thank you very much!

  • @elmehdibaccari2894
    @elmehdibaccari2894 3 года назад

    Awesome keep going , i was waiting for this

  • @levy18swag
    @levy18swag 2 года назад

    This saved my time ... your my MVP

  • @emmanuelsahrsewah
    @emmanuelsahrsewah 3 года назад +7

    this was what i needed exactly for my apps admin section ... now i can get the ball rolling lol. Thanks mate

  • @amancharlamanas3812
    @amancharlamanas3812 Год назад

    Very Helpful, thanks!!

  • @jaiden116
    @jaiden116 2 года назад

    This was so dope, thank you

  • @PriscillaSantanaRJ
    @PriscillaSantanaRJ 3 года назад

    Thank you so much, you've saved my life! lol

  • @joshdu93
    @joshdu93 3 года назад

    MASTERPIECE thanks a lot man

  • @nelsonchika
    @nelsonchika 3 года назад +6

    These man needs more support .
    I've been wanting to learn REACT for a long time, but I found it kinda difficult, but his tutorials put me through and he made them simplified, thanks Brian.
    If you wanna help me sure, you can teach us how to achieve user Authentication with ReactJS.
    Much Love.
    Also leave all your social media link, imma follow you as soon as possible.

    • @briandesign
      @briandesign  3 года назад

      Thanks David! I linked my twitter in my channel page

    • @nelsonchika
      @nelsonchika 3 года назад

      @@briandesign Ok man...
      Much love and keep up the good work .
      But please honor my request on how to achieve user Authentication with ReactJS.
      Thanks once again.

    • @briandesign
      @briandesign  3 года назад

      @@nelsonchika for sure!

    • @nelsonchika
      @nelsonchika 3 года назад

      @@briandesign I also got to the first set of videos you posted on you channel on UI/UX Designs they are awesome, if you can also convert them to HTML codes, I'll be greatful.

    • @briandesign
      @briandesign  3 года назад

      @@nelsonchika I'm planning on doing some HTML and css vids soon. I just got this one project I'm trying to finish first, then I can start posting a lot more vids

  • @emmahmoraa7661
    @emmahmoraa7661 3 года назад

    Thanks alot for this. Was very simple and works just fine.

  • @jerrymiller1590
    @jerrymiller1590 3 года назад

    This Brian, is definitely one of the best programming tutorials I have ever seen. I am learning React at the moment, and this video helped me so much with creating the sidebar for my new app. I thank you for your help and I look forward to your next videos :)

    • @briandesign
      @briandesign  3 года назад

      Thanks Jerry! Glad it helped

  • @koyawell2551
    @koyawell2551 3 года назад

    noice. i subbed. hope u make tutorials connecting reactjs to database in the future

  • @MsMMATHIAS
    @MsMMATHIAS 3 года назад +1

    Muito Obrigado meu amigo!! Thank you mate!!

  • @jgvlc
    @jgvlc 2 года назад

    Excellent tutorial, thank you very much!

  • @ervinabliamitov2149
    @ervinabliamitov2149 3 года назад +1

    Thank you very much! You are so cool and modern. I push the like button so hard, I broke my keyboard then, guush:(

  • @shalakakapure3683
    @shalakakapure3683 Год назад

    Thank you thank you so much for this tutorial!! youre a saviour!

    • @briandesign
      @briandesign  Год назад +1

      feel free to watch my updated version using react router v6.4

  • @maoryatskan6346
    @maoryatskan6346 3 года назад

    Great tutorial! Really awesome result and very good explanations.

  • @MarshallTheBeagle
    @MarshallTheBeagle 2 года назад

    Thank you for wonderful tutorial..I was able to use this seemlessly..

  • @tugaydemirel5985
    @tugaydemirel5985 2 года назад

    Thank you for content!

  • @fayismusthafa5914
    @fayismusthafa5914 3 года назад

    Really helpful, Thanks a lot Brian!!

  • @IK-pp4yf
    @IK-pp4yf 3 года назад

    yo i think ur style is the best

  • @wrighttechnologyinc.1544
    @wrighttechnologyinc.1544 2 года назад

    You went crazy bro 🔥

  • @nadyasudusinghe2213
    @nadyasudusinghe2213 2 года назад

    Thank you very much for this tutorial!!

  • @modinateniola772
    @modinateniola772 2 года назад

    Thank you so much for this

  • @imranshaikh115
    @imranshaikh115 2 года назад

    Thank you very much it helped me a lot , keep up the momentum please

  • @enriquecastillo5571
    @enriquecastillo5571 2 года назад

    Like and new subscriber. Thanks for share your knowledge and help the programmers community (And this React beginner xd). Btw, the format of your video is amazing.

  • @ankursinha1562
    @ankursinha1562 3 года назад

    hey brian this really helped me in my project...very easy to understand and implement...i wanted to make the bars display on the right side instead of left how can i do that...

  • @shangshi7467
    @shangshi7467 2 года назад

    Thanks very much! Subscribed!

  • @yo1414
    @yo1414 2 года назад

    Awesome! Thank you for your time!

  • @ismaelvasconcel9106
    @ismaelvasconcel9106 2 года назад

    Thank you very much dude! Great Job!!!

  • @Cats-2024
    @Cats-2024 2 года назад

    Liked your icons in VS code.. what extension do you use?

  • @MustafaCeliktas-xo5cd
    @MustafaCeliktas-xo5cd Год назад

    that was awesome bro thank you

  • @MrChealsea007
    @MrChealsea007 3 года назад +1

    Thankx for the wonderful tutorial :) . But, it would be great if you make the pages (home, reports) such that, when you click the menu, the page contents also shifts to right. Right now, if there is any content in the page, the menu div will hide certain portion of the page :(

  • @elciofreitas6727
    @elciofreitas6727 3 года назад

    work very well ... i am studying and u are very didatic ... icon "hack" was pretty cool

  • @nelliecrocker4487
    @nelliecrocker4487 2 года назад

    This was so helpful!! The only issue I can't figure out is how to get the sidebar to show on top of reactstrap cards in mobile view. Any idea how to force it to always be on top of everything else?

  • @mohamadsharifi2353
    @mohamadsharifi2353 3 года назад

    @Brian Design Great Video. would you explain why clicking on menu bar or close button re-renders the current component again and again?

  • @GaminCraze
    @GaminCraze 3 года назад

    Thank you so much for this video 🙃

  • @plotitsyn
    @plotitsyn 3 года назад

    Thank you! Super video about React Sidebar Navigation Menu

  • @victorjacon5745
    @victorjacon5745 3 года назад

    Amazing , thank you so much man

  • @Jack-kf5dz
    @Jack-kf5dz 3 года назад

    So helpful, thanks so much!

  • @willbdeti
    @willbdeti 3 года назад

    You are amazing guy! So thanks, i loved it!!!

  • @christianlopez2477
    @christianlopez2477 3 года назад +1

    Thanks for your video, it helped me a lot
    I just add that in the active nav-menu class I added "z-index = 1" so that the sidebar overlaps any bootstrap grid class on the main page
    Excuse me, I don't know English well. so I used a google translation
    Greetings from Chile

  • @user-vx9hx7ff3n
    @user-vx9hx7ff3n 3 года назад

    Thank you so much!! It's really awesome!!

  • @Julia86
    @Julia86 2 года назад

    Thank you for that!

  • @rajsinghshekhawat8020
    @rajsinghshekhawat8020 Год назад

    thank you so much sir

  • @ahnaafarafee
    @ahnaafarafee 3 года назад

    very explained tutorial. good job 👍