Create a Multi Page Web App With React

Поделиться
HTML-код
  • Опубликовано: 28 ноя 2024

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

  • @mirabellebianca7005
    @mirabellebianca7005 2 года назад +83

    thank you for this tutorial! i found that for react router version 6, three things to change in App.js:
    1. import { Routes, route } from "react-router-dom";
    2. surround tags with
    3. remove exact and replace component with element, eg.

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

      Thank you so much

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

      Thanks!

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

      rectify 1. import { Routes, route } from "react-router-dom"; to 1. import { Routes, Route } from "react-router-dom";

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

      Thank you so much!!

    • @hippityhoppity657
      @hippityhoppity657 2 года назад +14

      Had my page load for ages and then load a blank page, using react-router-dom v6, here's how I fixed it:
      In the file you use ReactDOM.render:

      In App.js:



      MainPage and FullMenu are my two pages

  • @hanaeben9041
    @hanaeben9041 4 года назад +12

    This is by far the best react tutorial I came across !! Thank u

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

    I have been searching all day examples, for how to create a react multipage app and they were too complicated. And now I got this video and now I have a good base for my homework app. Thank you :)

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

    Dude i saw your page, its simply exquisite. It's so satisfying to navigate it. Like a high end car.

  • @josephomerhi2980
    @josephomerhi2980 2 года назад +9

    I have a problem when I try routing the content in the other pages don't show anything

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

    Exactly what I was looking for.. and a video that doesn't take 2 hours to view.

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

    An easy-to-understand approach to React. Thank you Conor Bailey!

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

    The transition from Music to Coding, that's smooth.

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

    This video has saved me a lot of time.
    Thank Conor Bailey.

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

    Great video, just starting with react and this is the first walkthrough that has actually made sense.

  • @vanshikanamdev3959
    @vanshikanamdev3959 3 года назад +10

    You really are a life saver, Thank you for this video :)

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

      Nice one mate. Glad it helped you out!

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

    This was a great video on getting people started with creating and navigating multiple pages via React. Great work. Thank you so much.

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

    I was testing around with this and found the 2 cleanist way of making this.
    1. Put all the pages.js files in a "routes" folder
    2. To make templates, put it in app.js, it will show no matter what.

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

    Best Video on this subject so far for me

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

      Thanks pal! Much appreciated!

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

    Great video, I'm new to react and this is a great example of routing. Many thanks

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

    Great tutorial for a React beginner 👍🏾👍🏾👍🏾👍🏾

  • @francois-xavierpustoch6230
    @francois-xavierpustoch6230 Год назад

    excellent video ! great starting point

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

    this was very helpful and quick, thanks for making so short and simple for me to understand quickly you are a great teacher.

  • @ElonTusk..
    @ElonTusk.. 2 года назад

    chill dude ....... step by step Thank you G!

  • @patman57
    @patman57 5 лет назад +8

    Great video! Exactly what I was looking for and very well explained

    • @ConorBailey
      @ConorBailey  5 лет назад

      Thanks for you comment Patrick. Glad I could help :)

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

    2021
    It worked, but i had a problem while doing it, idk if it is because i'm using yarn but, i needed to do "yarn add react-router-dom" and "yarn add @types/react-router-dom", if you dont add the @types you cant import the router-dom.
    Anyway, ty mate.

  • @calin-andreipantis-simut6241
    @calin-andreipantis-simut6241 3 года назад

    I enjoyed watching it. You re doing a great job man!

  • @franzkylonocon6348
    @franzkylonocon6348 5 лет назад +6

    Good Job, mate! I like your video. Please do more tutorial in React. Where's the part2? :)
    Thank you very much!

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

    That is a comprehensive video. Thanks for sharing.

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

    Thank you for making it so simple and easy to follow. Seriously, video serves its purpose greatly. Thanks

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

      Hey Caleb. Thanks mate. Glad it helped you out. Have you hear of Next JS? It's a React Framework which handles this client side routing out of the box. Worth checking out.

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

      @@ConorBailey No I have not, will check it out! thanks

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

    This is exactly what i wanted....you saved me from a lot of hassle.

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

    is there a way to hide navbar when we go to different pages?

  • @k.n956
    @k.n956 3 года назад +1

    Omgg U saved me 😭😭🙇‍♀️thank u so much..

  • @umairrsyedd
    @umairrsyedd 4 года назад +4

    Ughh the keyboard is so satisfying 😂

    • @ConorBailey
      @ConorBailey  4 года назад

      😂

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

      I was thinking the same thing. I miss using a apple keyboard. lol

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

    Thanks mate! Straight to the point!

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

    Very nice tutorial, it saved my life.

  • @mitchellaninyang12
    @mitchellaninyang12 4 года назад +1

    Amazing video fam!! You're a life saver.

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

    Very nice tutorial! SImple, short and very useful.

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

    Thank you for the concise and informative tutorial! This helped me out a lot!

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

    I was expecting multi page rendering application.
    This tutorial is how to create pages in single page application.

    • @ConorBailey
      @ConorBailey  4 года назад

      It’s using react router to feign multiple pages on a single page. Therefore it’s not sending a get request each time making it smoother. This is a great benefit to using React.

    • @venkateshwarreddy8363
      @venkateshwarreddy8363 4 года назад +1

      @@ConorBailey itnext.io/building-multi-page-application-with-react-f5a338489694

    • @ConorBailey
      @ConorBailey  4 года назад

      Thanks for sharing Venkateshwar. Will take a look into this approach. What project are you working on at the moment?

    • @venkateshwarreddy8363
      @venkateshwarreddy8363 4 года назад

      @@ConorBailey I'm working on a e-commerce project.

    • @michaelkaufman5119
      @michaelkaufman5119 4 года назад +1

      @@ConorBailey Yes but this is not multiple pages. this is a SPA. Got to down vote this.

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

    Great video, taught me a new skill, and saved loads of time. Thank you!

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

    Was looking forward to the follow-up video but can't find it? Ps this was so great - it made it so simple, thanks!

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

    Does build folder of reactapp generate saperate Home.html files for each page?

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

    Thanks wow this was very clear and much more simple than I had initially thought! :)

  •  2 года назад

    thank you very much, my friend!

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

    Please zoom in more on your code

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

    Great vid! had some issues because I was using a newer version of react router, find out that you can stick an @ with version number directly after - npm i react-router-dom@(version) or manually change the version on the package.json file and update the dependencies with an npm install. cheers!

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

    hey just have a quick question. is .jsx and .js both considered a page? in other words can i use react-router on .jsx files

  • @user-nr6do2xz7i
    @user-nr6do2xz7i 4 года назад +1

    This vdo is very amazing that I can do it now and so useful for my beginner.

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

    @Conor Bailey please can you explain to me why even as I followed all your steps to the letter my pages are not separated the content of the other pages are in my home page and all the other pages share the Same content which shouldn't be so

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

    my VS code installed me completely different text at files is this becouse of node version I use?

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

    Thanks man This helped me out a lot! :)

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

    Great tutorial. Clear and on point. Many thanks!

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

    Im a beginner it helped a lot thanks

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

    how can I fix the problem when "Link" is shown that "no unused var", i dont get it. I thought that is it from react router dom

  • @User_005
    @User_005 4 года назад

    is it possible to use a callback function or pass down a 'something={this,props.something}' using this method?

  • @yasirbhatti6734
    @yasirbhatti6734 4 года назад +1

    thanks alot nice and very helpful tutorial

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

    Thanks! Just what i needed!

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

    Good video and all. I even gave it a like. However I wish Mr. Bailey would have been able to zoom in on his code so that I could see it better. It was pretty hard for me to read it. Otherwise great video and great explanations and great pace. Not too fast or too slow.

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

    By the way, do you have any videos on how to make a website responsive with REACT? Also, can you work with Bootstrap in REACT?, If so, how do you mix Bootstrap in REACT? where would the files go and link together?

  • @analauraparlante6379
    @analauraparlante6379 4 года назад +1

    Thank you very much, Conor!

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

    Just what i needed thank you

  • @Xcentrec
    @Xcentrec 4 года назад

    Hello mate, how can I make the nav bar to disappear when the button is triggered?

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

    This is so good! Thank u for this :D

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

    I really want to know how to hide with header and footer in home page only?

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

    Anyone know why im getting a blank page when I do this? Even when I copy it exactly its not showing the page components

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

      Even I too am getting a blank page. Could you solve the problem?

    • @RW-pt5qv
      @RW-pt5qv 2 года назад

      @@Juzzyjuzzy if you've solved it can you please explain how you did

  • @AnetaBanas-Brejtanetabanas
    @AnetaBanas-Brejtanetabanas 3 года назад

    Thanks, it was helpful.

  • @natachabailey7475
    @natachabailey7475 5 лет назад

    Great stuff ! Thank you so much mate !

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

    it was helpful thank you

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

    Thanks so much for this guide

  • @jyotigupta-tz1fi
    @jyotigupta-tz1fi 3 года назад +1

    nice video but fonts are quite small

  • @SyedAli-kr6qw
    @SyedAli-kr6qw 5 лет назад +1

    Can you use zooming for phone users please?

    • @ConorBailey
      @ConorBailey  5 лет назад +1

      syed shoaib will do mate. I have thought about this so will try in future vids 👍

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

    hi, I have a question can I use a variable form a js page to another js page in the same web app (e.g. I have 2 survey results so 2 variables and then I want to combine these 2 variables of these 2 surveys to a new survey)

  • @user-vn9mp2zi3s
    @user-vn9mp2zi3s 2 года назад +1

    I Got "Router is not defined" error

  • @Anonymous-lh8bp
    @Anonymous-lh8bp 3 года назад

    Thank you, much appreciated

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

    Amazing Tutorial!

  • @julianagrutzmann2223
    @julianagrutzmann2223 4 года назад

    Thanks mate, good content!

  • @ALLCAPS
    @ALLCAPS 5 лет назад +1

    Sweet coding, mate. You're a good help! Very good at explaining things too! Do more videos, perhaps on an Access like interface.. Where you can connect your React webpage to MS Server and manage the database! that'd be great!

    • @ConorBailey
      @ConorBailey  5 лет назад +1

      ALL CAPS thanks for the comment mate. I’ll have a look into connecting React to MS server. 👍

    • @ALLCAPS
      @ALLCAPS 5 лет назад +1

      @@ConorBailey Awesome!!

    • @ALLCAPS
      @ALLCAPS 5 лет назад +1

      @@ConorBailey here is one of the many tutorials that I've been looking into: dzone.com/articles/aspnet-core-crud-with-reactjs-and-entity-framework

    • @ConorBailey
      @ConorBailey  5 лет назад

      Hi mate. Sorry I’ve only just seen this. Will have a look over the article. How long have you been developing? Any projects going on at the moment?

    • @ALLCAPS
      @ALLCAPS 5 лет назад

      1 year outside of school, 2-3 years in school. (: and yourself?

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

    You really helped me!

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

    Nice video

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

    Pls increase size of fonts

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

    thanks! this helped me.

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

    Thank you for this.

  • @runzesong1724
    @runzesong1724 4 года назад

    When would you submit part 2 man!!!!!

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

    Thank you so much!

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

    So, it is MPA or SPA bro?

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

    It is not working with me why i m unable to see anything my browser show blank pages?
    Please answer.

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

      How did you solved this error?

  • @braham.prakash
    @braham.prakash 3 года назад +1

    nice toutorial ❤️❤️

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

      Thanks bud. Glad it helped!

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

    Great tutorial but Come on, why is the text so small?

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

    You are agood teacher

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

    does not work on ES6 anymore... but a good tutorial

  • @TechManAkhil
    @TechManAkhil 4 года назад +1

    Honest review: zoom in a little more as the words are too tiny to view.

    • @ConorBailey
      @ConorBailey  4 года назад +1

      Thanks Alhil. Thanks for the feedback mate. Will make sure to zoom in in future videos.

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

    I became a huge fan and that's it lol

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

    Very helpful

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

    But its single page app not multipage app

    • @ConorBailey
      @ConorBailey  4 года назад

      AdiL IsmaiL yes technically. Just a video to show how router works.

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

    Please, learn to type without looking at your hands and then learn vim or some sort of text editor with shortcuts so that you can type and program more efficiently.

    • @ConorBailey
      @ConorBailey  4 года назад

      Thanks Justin. I’ve been meaning to look into vim actually after seeing Ben Awad mentioned it in one of his videos. Will work on my typing. 👍

  • @ddg1972
    @ddg1972 5 лет назад

    Thank you very very much!

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

    Looks great! Thanks for the vid!
    If y'all have time read Matthew 7:7!

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

    Thank you. Please receive 10 starts. :)

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

    Thank you!!

  • @chandnasingh6474
    @chandnasingh6474 4 года назад

    Nothing is visible

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

    Thanks a lot

  • @sajzvlog7495
    @sajzvlog7495 4 года назад

    Can't c anything. Make the code editor even smaller

  • @53female
    @53female 3 года назад

    Like it! 😊

  • @FaishalHanif
    @FaishalHanif 4 года назад

    Thank you