React Website Responsive Tutorial - Beginner React JS Project Using Hooks and Router

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • Learn how to build a responsive React website using React Hooks and React Router in this beginner tutorial. We are going to build the front end UI using React JS. The main sections of the site are made with reusable components that you can customize and add wherever you want.
    If you want to follow me along my coding journey, be sure to subscribe :)
    / @briandesign
    Timeline
    0:00 What we are building
    4:50 Create React App in terminal
    9:30 Creating the pages folder
    14:10 Installing React Router
    15:00 Adding React Icons
    28:53 Creating the Button Component
    48:10 Access the source code
    58:48 Creating the Hero section
    1:10:15 Creating the Homepage
    1:26:06 Adding the Footer Component
    1:30:27 Creating the Pricing Component
    1:52:24 Updating the Routes pages
    1:59:22 Adding an external link in Footer
    Watch my other React Website Design Tutorial Here
    • React Website Tutorial...
    Here is the source code
    github.com/briancodex/react-w...
    Be sure to like and subscribe! Feel free to refactor my code to make it better. Also, let me know any cool tricks or tips that I can add to improve my next project

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

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

    Get the source code here:
    www.codavilla.com/posts/react-website-using-hooks-and-router-with-reusable-components

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

      @@ninjadev4676 it's on master branch

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

      the css

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

      there is no source code available

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

      @@RoshanKrSoni what do you mean?

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

      @@briandesign nothing. it was my mistake

  • @secnytsecnyt2981
    @secnytsecnyt2981 3 года назад +20

    Amazing tutorial, I’ve learned a lot about React and the main ideas surrounding it. Thanks, you’ve earned a new sub!

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

    Just the begining alone showing what to delete and what error messages to worry/not worry about is invaluable. thank you.

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

    Man, honestly the way you explain things is a huge change from different tutorials. Other tutorials are cool, but I appreciate you being real with your explanations. Ill be watching a lot of your videos.

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

    Finally a React video that I can follow and understand!!! I am a beginner and appreciate that you went slow and showed everything! thank you!!!!

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

    Decided to follow this for my intro to web dev class...I never knew how I made sites without react. Thanks King

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

      Nice! yeah it's way different than just regular HTML,CSS and JS

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

    Brian design thank you for the awesome content. Your programming skills are insane. Keep up the good work, man.

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

    This is definitely not a beginner tutorial, I have to say what you did there is just awesome. I've learned so much from watching it, keep up the good content.

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

    Love your videos bro. They are simple and easy to understand. I also like your approach towards react. Looking forward to seeing more videos, keep up the good work. Cheers.

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

    Thank you man! You're offering real value here, appreciate it!

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

    So much to learn from this tutor, he has a wealth of knowledge

  • @pablotapia8237
    @pablotapia8237 3 года назад +19

    dude just created his own buttons library inside his project and im just here repracticing some styling lmao

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

    I'm starting learn react and this tutorial help me a lot, it is amazing! thanks

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

    You're a fantastic dev and a great teacher. Many thanks from Zimbabwe.

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

    You make really good videos man! please keep with this great work!!

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

    Amazing vids! Straight away started following!
    Keep on the good work!
    Also supported with buying the smooth scroll project you did... Keep killing it

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

    Your videos are brilliant and very descriptive!
    I was able to follow your video all the way without any problems and I’m about to finish my own project inspired by what I’ve learned.
    Brilliant. Keep it up 🌟

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

    Thanks Brian - your videos are always helpful. You are helping a lot of us man! Cheers

  • @e.d.r1546
    @e.d.r1546 3 года назад

    Great channel dude, keep going with those Project tutorials!!!
    Thanks from Argentina

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

    Yes, I completed this. Thanks @Brian :) Learn so many things from you.

  • @CV-ec6mk
    @CV-ec6mk 2 года назад

    Just want to say thank you so much for sharing love your content man

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

    Amazing tutorial video, I learn a lot about react in here.

  • @ShahbazKhan-zl2zt
    @ShahbazKhan-zl2zt 3 года назад

    i love it. Exactly what i wanted. Keep it up. Thank You

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

    Excelente Brian, me ha servido mucho para aprender React como principiante.
    Aún me falta conocimiento en JS pero este video lo he entendido a la perfeccion
    Saludos de Argentina!!

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

    I really like your tutorial and that you taught so many shortcut hot keys. Thank you!!

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

      Thanks! Yeah there are so many more shortcuts out there

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

    Awesome video Bro, I love these modern, clean designs.

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

    amazing tutorial thanks!!

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

    Thanks for the tutorial, pretty great landing page.

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

    Great video! Amazing tutorial! Thanks

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

    This video helped me a lot Brian, Thank you.

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

    awesome! The style is perfect. Thank you!

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

    awesome design, super clean and very pleasen to clients. Thx keep it up.!!

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

    Thankyou so much Brian. i learn a lot from your tutorial..
    when i following your tutorial, i also tranform your code to typescripts (for me to learn more about typescripts).your tutorial is so simple and easy to understand.
    Great Job brian !

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

    Man your content is getting better every day ❤

  • @sayka_tech
    @sayka_tech 2 года назад +6

    19:25 Switch has been changed to Routes (react-router-dom v6)

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

    Amazing tutorial. Impressive CSS wizardry.

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

    Awesome vids! It helped me a lot. Thank U

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

    Im quite amaze man. You just doing this for 6 months wow. you are ntural

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

    great tutorial, subbed and hoping for more!

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

    Congrats!!! It was amazing work.

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

    If anyone else has an issue with the code completion that Brian talks about at 11:30, I'll post below what I did to resolve it! Awesome vid!
    - open "find a file" search bar (ctrl + p on windows)
    - search ">settings.json" and open it
    - paste in :
    "emmet.includeLanguages": {
    "javascript": "javascriptreact"
    }
    - reload vs code!

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

    Awesome tutorial, 10/10. Liked and subscribed.
    I liked that you always tell which commands you are typing, which is pretty important for beginners. Good design with responsiveness. I am a beginner, so I am not sure how snapshot tests would fit in development for a page like this (in the sense of: do we need to do it or you just did not do it because it wasn't the purpose of this tutorial?).

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

    for auto class creation go to settings in VS Code by pressing Shift + Control + P type settings.json into the search. Open Settings (JSON)
    "emmet.triggerExpansionOnTab": true,
    "emmet.includeLanguages": { "javascript": "javascriptreact" }

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

    Wow! I'm starting with React, and was looking now for a video like this, thank god I found it. Thanks a lot! I'm starting coding along with you now.
    Cheers from Brazil.

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

      And of course, +1 subscriber

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

      Awesome! Thanks Bruno!

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

      and yeah I noticed there was like 0 videos showing how to make a react site with a common website design, so I figured I'd just make my own vid

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

    Great tutorial.. Keep it Rolling.. Best of luck.. Love your Teaching..

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

    such a great video! thank you!

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

    I subscribed for amazing stuffs like this❤️

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

    Man you are amazing 😍 👏

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

    Thank you so much for this!

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

    Awesome tutorial!

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

    Thanks for the tutorial!

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

    Easy sub, good stuff 💯

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

    so beatiful and helpful thank you so much

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

    This video was awesome! One of the best react tutorials I've seen so far, thank you! Do you have any tutorials on react router params? For example fetching data from an API then implementing dynamic Links to view each single/full page of data.

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

      Thanks! As far as apis I made a simple vid about a crypto api and showing the different values, but I haven’t made one with Params yet

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

      @@briandesign That would be super sweet if you did some day :) Your teaching style is excellent. Thank you for your reply.

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

    Thanks for this most wonderful content

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

    Thank you so much again, Brian, for your awesome tutorial. Especially for this video. I could make a suggestion that you might include in your next video, it would be how to whenever I'm changing pages, the mouse scroll will be back to the top again.

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

      So I made few changes. I put into each components in each folder in HomePage (except Footer folder) before return function:
      useEffect(() => {
      window.scrollTo(0, 0)
      }, [])
      And it works like a charm!

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

      Nice! Yeah I made a video on my channel with the react scroll to top component, but looks like you figured it out already

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

    Thank you so much bro! 🥰👍🏽

  • @sayka_tech
    @sayka_tech 2 года назад +5

    19:20 You just have to change Router to BrowserRouter as Router (at the import) to let the error go away. Other changes (Switch, Routes) are not needed (at that point)

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

    Finaly get to learn how to manage responsivity ( if that's a thing ) in a react app. Thank you !

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

    first of your kind finally an actual project and not another todo app

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

      haha thanks Shane! I did make a todo app tho incase you wanna see that lol

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

    Thanks for the tutorial.

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

    Great video Brian! I am currently using it as a framework to become a better developer and build my website! I have one that does not use react, it's just basic HTML, CSS, and JavaScript. I have found that after about 10 pages, this quickly becomes too much work to keep updating and improving without a framework. I do have some questions/improvement requests for another video! looking forward to your content!

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

      Thanks for watching! Yeah there's so much extra code if you were to make a similar design with just html and css. Feel free to recommend any website designs/video ideas!

  • @hammad-ilyas
    @hammad-ilyas 3 года назад +33

    3:00 "Let me copy this like a million times".
    "1 2 hit save"

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

    the father of responsive thnks

  • @trevorcoe290
    @trevorcoe290 2 года назад +4

    If your app won't render at 1:14:24 like Brian's does (I had this issue). Go to app.js line 12, replace "exact component={Home}" with "element={}"

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

    Your video is awesome 😘

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

    Thats a good tuto, but I recommend everyone to consider using Styled components: Easier for maitaining code as it avoids name clashes by default, it adds prefixes by default, gives the power of Javascript to styling, allows making more shareable/self-contained components, and if everything is a component, everything can be tested. Cheers

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

    I love your page and style bro

  • @Ben-nt1zl
    @Ben-nt1zl 3 года назад

    great project but that button section blew my brain open not sure how beginner friendly that was. have subscribed to your channel cheers bro

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

    Hey Brian thanks so much for the awesome video, I am still new to React and you did an awesome job at explaining your code. However i got lost during the Button.js component creation, is that the react styled components way of building components you used or its something else, may you please make a tutorial that explains what you did there or just a tutorial to help us understand the concept you used when you created the Button.js component

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

    You’re inspiring me to do some more code-alongs in the future. Nice stuff

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

      aye do it man! There's a ton of things that people are always searching, but nobody has made a video tutorial on, so you could easily rank for those topics since you already have a channel vs. someone on stackoverflow or a blog site

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

    Great tutorial! Thanks, Brian!
    Just one thing to note, the mobile menu works fine in Chrome, however in Firefox, the mobile menu items are positioned at the bottom of the page.

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

      You Have Good eye Jade ! I have just losing hope than the all this people done this tutorial and tested this code !?!?! Luckily WE are here :D !!! any suggestion with this issue ? Greetings and Have you great day and perfect Vision all the time ! ;)

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

      same happenned to me

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

      There is an error in the nav-menu css class aligning to bottom. It's a duplicate declaration so can just be deleted

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

    Really great tutorial..

  • @JohnDoe-rj2kf
    @JohnDoe-rj2kf 3 года назад +3

    open settings in vscode in json format and paste this: "emmet.includeLanguages": {
    "javascript": "javascriptreact"
    }

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

    Muito bom, obrigado pelo conteudo \o/

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

    Thank you sir

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

    不错的教程~~

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

    What is the best way to add SEO, create forms (front-end and back-end), and push to a hosting account?

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

    woooow your video is very very cool

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

    Hi! Just wondering, if I change the design a little, can I deploy this website? :)

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

    Thank you, Great tutorial. I just want you to know that in my case the mobile navbar get hide with handleClick function, instead with the closeMobileMenu function. Could be a good discussion topic know why this happen. Tku again

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

    Wish you slowed down a bit and explained why and how things worked a bit more but thank you I learned a lot from this.

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

    excellent job.

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

    This is awesome

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

    Bro you are best

  • @casul-4891
    @casul-4891 3 года назад

    Thanks for your content !!!,, It's great,
    Don't mind me, I'm just gonna press the subs button

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

    Awesome tutorial...

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

    This was a great video. How do you accept props passed by other package in index.js which has only ReactDOM.Render in it?

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

    Great videos man. Learning a lot from you! But I feel stupid… lol. The only part I’m not getting is how you make the navbar menu items appear and disappear. What part of the code does that? Is it the JS or the CSS? Can’t figure it out.

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

    Great job... I want to ask.. the website content overlaps (mobile) how do I wrap it ?

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

    Great content! Are you planning to link it up to an actual backend?

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

    Good job, go more))

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

    New subs bro🖐️

  • @AniketKumar-ym7mi
    @AniketKumar-ym7mi 3 года назад

    Dope content ❤️🙌🙌

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

      Thanks Aniket!

    • @AniketKumar-ym7mi
      @AniketKumar-ym7mi 3 года назад

      Brian Design Welcome Brian! Would love to see for React Native as well 😌😊

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

      @@AniketKumar-ym7mi I have plans for that in the future, so I'll most likely make some vids of that too

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

    Hey, brian, thanks for this video it will help me a lot. Just one thing, what extension you are using to complete the HTML like when you div.className, my work just in HTML file don't happen to js file?

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

      ruclips.net/video/ph65TPiNmKo/видео.html I made a vid here

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

    what was the extention you used when you wrote (.navbar) and clicked tab ?

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

    Hi, thanks for sharing this video. But can you share me the name of the Plugin that you use to type ".navbar..." and is auto create the HTML component inside? I am using VSCode. Many thanks for that.

  • @user-ld3yp1wn6n
    @user-ld3yp1wn6n 2 года назад

    Hi Brian how do you move get started and the text to center can you explain please and reply asap i don't require an image

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

    UN GENIO

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

    Good content