React Router 6 - Full Course

Поделиться
HTML-код

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

  • @Mr_Brian
    @Mr_Brian Год назад +131

    Bob Ziroll is just one of the best instructors for React. I did his 12 hour course of React for beginners and I loved it.

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

      12hrs! Beginner?! 💀💀💀💀💀💀💀💀💀💀💀💀

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

      I learned react from him too. he is the best.

    • @Arcanist1010
      @Arcanist1010 Год назад +5

      @@NobleOsinachi Yes and 13 hours react advanced (including the react router)

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

      ​@@Arcanist1010where can I find this course ?

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

      yes, me2. he did a great job at that video.

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

    Bob Ziroll you are an excellent teacher. This is absolute freedom from tutorial hell.

  • @TheFuneralmask
    @TheFuneralmask Год назад +24

    For anyone stuck around 6:40:00 requireAuth this fixed it for me:
    export async function requireAuth() {
    const isLoggedIn = false
    if (!isLoggedIn) {
    const response = redirect("/login")
    response.body = true
    throw response
    }
    return null
    }

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

      Thanks 🙏

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

      was breaking my head. Thanks for the help!

    • @MuhammadAbbas-bd4kg
      @MuhammadAbbas-bd4kg Год назад

      Thanks, you saved my time😄😄

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

      thanks a lot. it took me hours but I couldn't solved it.

    • @abd.alharbi
      @abd.alharbi Год назад

      I get a 'Body is a read-only property' error. I'm developing in typescript. Not sure if that could be a problem!

  • @selahadinjemal7138
    @selahadinjemal7138 Год назад +15

    Bob Ziroll is the best React instructor that I have come across so far. His teaching styles are unmatched. unlike many other tutorials on youtube that you just follow along, he's tutorial is highly interactive and makes you do much of the work. I took his learn react course in Scrimba, I can proudly say that It is the best react course for beginners. Can't wait to work on this one!. Also shoutout to freecodecamp for finding such individuals and convincing them on offering their services for free.

  • @siddhantjain490
    @siddhantjain490 7 месяцев назад +2

    Best course I have ever taken. The small challenges and the fact that he neither wasted time on CSS nor on making components and taught us Routing was so Fun. Also, he has given access to Figma file, so we can work on CSS skills later. More courses like these.

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

    ek number ka coursh hai abhi lagata hai ki ha kisi bhi tarah ka routing kar sakta hu mere tarf se 1000 topo ki salami

  • @jeyfason
    @jeyfason Год назад +8

    Bob Ziroll is my favorite instructor whenever i see any course prepared by him i feel like i'm in good hand for getting better knowledge. thanks Bob Ziroll for your react beginner course was real helped me

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

    2:06-lesson 1- for client side routing.
    4:55-lesson 2- multi page vs single page app.
    10:12--extra local development & GitHub repo.
    12:25-L3 react router setup & browser router.
    15:40--L4 Routes
    5:12:02-- lesson 66 about the createBrowseRouter

    • @Impulse.V
      @Impulse.V Год назад +2

      Lmao what did they do 5 hours before? 😂

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

      Can i ask you why is this course 9h length while most of react routers tutorials are 1h or 1h and and half

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

    This course is usefull for everyone not just the beginners. Since the React Router Dom team is a bunch of trolls who never update their documentation and examples, it's a mess and a waste of time to figure out how to do a proper authentification routing. Ofc this video doesn't cover every cases as you "cheat" using createRoutesFromElement (yes i tried with a pure createBrowserRouter cause i want the object approach and it's painfull) but it's way better than the lack of official documentation. Thank you.

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

    I found the best course taught by the best instructor!!! Thank you so much Bob Ziroll!!!!!! I love your class so much!! Thank you for helping me learning!!

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

    The pitch of his voice has already told me that you are going to master react-router... Love you Bob....😍🙏

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

    The way he breaks down the whole topic is just fantastic. Appreciate

  • @wenatairs6629
    @wenatairs6629 Год назад +14

    Yes, this is what was needed after React Router was updated to this new version. Thanks FCC and thanks Bob for this amazing course. Now , time to dive in

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

    The Advanced course was on point and i love the way he break everything down to the pieces. It serves as my personal guide in case i get stuck on the field

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

    Bob Ziroll is the god of react thanks man

  • @jaymahakaal5354
    @jaymahakaal5354 Год назад +7

    Pranaam guruji🙇 2 month ago i completed your 12 hour react course it helped me alot to developed my practical skills of react same goes for routerV6. Please do the same with Redux i'm seriously facing alot issues to master the ReduxToolkit.

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

    for anyone who needs it (code below), regarding the Merging search params subject, this utility funciton allows to handle multiple query parameters in a single function, allowing you to create x amount of parameters, AND also adding or removing values from one specific query parameter that holds concatenated data %3, and also mixing together multiple query parms to create a more flexible filter mechanism. Keeping in mind that it's not common to have identical keys with different values, we can just cocatenate that related data in one param and separate it with %3. + other params that achieve other purposes. (this function respects other params existing in the url)
    You just need to add the event, a queryParameter parameters to the function and pass it to a component onClick attribute (the button in this case must define the attribute name which will provide the value pair for the queryParameter)
    I HAVE TO SAY THAT I'M LEARNING A LOT, THANK YOU SO MUCH
    const addQueryParam= (ev, type) =>{
    let value = ev.target.name;

    if(searchParams.has(type)){
    let param = searchParams.get(type).split(":");
    if(param.includes(value)){
    let newParams = param.filter(ev => ev !== value);
    setsearchParams((prev)=> {
    newParams.length===0 ? prev.delete(type) : prev.set(type, newParams.join(":"));
    return prev;
    })
    }else{
    setsearchParams((prev) => {
    prev.set(type, param.join(":").concat(`:${value}`))
    return prev;
    } )
    }
    }else{
    setsearchParams((prev) => {prev.append(type, value)
    return prev;
    });
    }
    }
    For clarity
    addQueryParam(e, "filterBy")} >Simple

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

    Bob ziroll is such a wonderful instructor he made me fall in love with react. Hope he can do a course on react query. He's competent and simplifies things down to to the grain.

  • @Sara-rg2wq
    @Sara-rg2wq Год назад +7

    this is literally the best course ever i could not thank u guys enough + im really grateful for all the the hard work that u r putting in these courses

  • @GilbertoMadeira83
    @GilbertoMadeira83 Год назад +19

    I've attended his react course , I can tell for sure that it was the best course of all youtube I could find! it would be perfect to wrap this series with a react native , a redux, and a nextjs course, thanks freecodecamp, you rock.

  • @tusharghildiyal6814
    @tusharghildiyal6814 Год назад +15

    Damn never imagined a freaking 9 hours course on JUST React Router 😮
    Kudos to FCC 🔥

    • @ZM-dm3jg
      @ZM-dm3jg Год назад +14

      Why do you think that's a good thing lol? Waste of time, just read the docs. If you need a 9 hour course on react-router instead of reading the docs, there's probably no hope for you as a developer.

    • @phongphanthanh6878
      @phongphanthanh6878 Год назад +5

      @@ZM-dm3jg If you read it, you forget it. If you see it, you will remember it. If you think reading the docs is enough, there's probably no hope for you as a developer

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

      ​@@phongphanthanh6878 reading docs is a good practice and is recommended.

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

      @@riturajpathak1905 watching also

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

      @@ZM-dm3jg I read full documentations. I refer the documentation everytime i get stuck. But its good to have a course taught by a professional on how to structurally use a library. We get to learn new things ✌

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

    Bob you should try and do a course on redux because you ae just the best teacher i have ever seen any where in this world

  • @JustSkillGG
    @JustSkillGG Год назад +8

    Guys trust me on that.
    Bob Ziroll is definitely one of the best (if not THE best) react teachers on planet earth.
    This course will be worth it.
    ( even though we use NextJS and we don't need React Router )

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

      So if u don't need to learn them both?.. U need to learn only next js then?

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

      @@HocineKamikaz there are differences, like with everything. You can use nextjs or react router

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

    I have never seen a best teacher like Bob ZIroll

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

    One of the best tech teacher.

  • @SakhileDumisa
    @SakhileDumisa 29 дней назад

    Best react-router course:)

  • @arnoldRiungu
    @arnoldRiungu 11 месяцев назад

    Bob ziroll is a beast i learnt react from his course and cany wait to start this course

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

    Best Video on React Router Dom 😇😇😇😇😇😇😇😇😇😇😇
    Guru ji you are the best

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

    Very awesome course! Loved the instructor and loved how Scrimba works, though I still mostly ran the project locally to get familiar with the dev workflow and to save my code edits for each section separately. I learned an incredible amount of info from this, thank you FCC and Bob!

  • @exe.m1dn1ght
    @exe.m1dn1ght 9 месяцев назад

    Bob Ziroll, you are a great Master, thank you so much for this exceptional tutorial !!

  • @FaySaud-j3l
    @FaySaud-j3l 11 месяцев назад

    Bob ziroll is a powerful teacher, incredibly helpful course🙏 would love to see a course like this for react hooks

  • @gabrielgomesmabiala6707
    @gabrielgomesmabiala6707 Год назад +4

    I love the way that Bob Ziroll Teach great job thank you so muach for making this available for freen see you on scrimba

  • @Tr1ckyP1cky
    @Tr1ckyP1cky Год назад +14

    For anyone that's stuck on the protected routes, the error that you're getting might be because of Mirage JS not being able to play well with react-router version 6.4.5. There's two options to fix this, either downgrade your version or try this hacky code that bob helped me with
    export async function requireAuth() {
    const isLoggedIn = false
    if (!isLoggedIn) {
    const response = redirect("/login")
    response.body = true
    throw response
    }
    return null
    }

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

      Thanks, helped a lot 😊

    • @JavadMoghaddam-dq9bd
      @JavadMoghaddam-dq9bd Год назад

      Hi,
      I have a problem here . when the isLoggedIn is set to false it works correctly and redirects me to login page , but when it is set to true , after clicking on Host an error shows up :
      Unexpected Application Error!
      You defined a loader for route "0-5-0" but didn't return anything from your `loader` function. Please return a value or `null`.
      does anybody have the same problem!??

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

      @@JavadMoghaddam-dq9bd you need to return null or function where youre calling your authRequire

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

      thanks buudy, saved my day

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

      Thanks bro, you just saved me days of trying to figure this out.

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

    scrimba and bob ziroll helps me alot !!!!!!!!!!!

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

    thank you Bob Ziroll you did a great job .i love this video you make it easy and Cristal clear .

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

    This guy is too good.... Glued for 2 hours and still counting

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

    thanks for the new knowledge about react-router bob, what a great free course

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

    learning react with bob is amazing ♨♨

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

    I am a simple man, I see bob ziroll teaching a course, I tap on it

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

    He has a brilliant teaching skill ❤. I love his teaching method

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

    Also i think Bob should do a full course from scratch to the top how to build a full react e-commerce site because some of us love to see it done from a great teacher like Bob and we can do it ourselves

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

    2:19:29 I love your teaching methodology, thanks :3 see u at the end of the course

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

    It's almost like you knew I needed this.

  • @qwertymegaforce9088
    @qwertymegaforce9088 11 месяцев назад

    This video helped me a lot! Thank you!

  • @phanikishanyt
    @phanikishanyt Год назад +4

    We need an exclusive course covers all the hooks please

  • @ArdhiSasongko-h7p
    @ArdhiSasongko-h7p Год назад

    Great tutorial that i ever watch so far about react router

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

    Awesome course 🔥🔥🔥

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

    My life was never eazy...
    But after watching this tutorial
    The next one gon' be eazy...

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

    I loved Bob's React course. This will be fun coding allong.

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

    Amazing Course. Thanks!

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

    After learning react for beginner's much helpful to me ! Thanks so much to Bob's Ziroll and free code camp community ❤, hope that would interesting too !

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

    Great tutorial the best I have seen but one improvement u can add deesser on your mic sound the sounds like sss and tss are not so sharp and will not cut my ears

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

    At 8:25:05 are you coding something behind the floating browser? Something broke after this and the github files don't have the finished version.

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

    Great as usual. Appreciate the update. I hope he makes a video on the new redux tool kit and react 18 new features. Next JS solves most of these routing problems but not every company uses it, and learning next JS becomes much easier if you know how to do this routing manually.

  • @ahmedwael3919
    @ahmedwael3919 Год назад +4

    I have a problem with redirect(url) function, it doesn't redirect me to the login page.

  • @KrishnaKumar-qx1mk
    @KrishnaKumar-qx1mk Год назад

    I completed his react course and I was searching some other courses for Practice, but none of them were as good as his react course

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

    Ignore this:
    3:36:55 : when to use query (sharable)

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

    Thank you all information you gave us

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

    Bob Ziroll 🙏

  • @edward_cullen.07
    @edward_cullen.07 Год назад +2

    Always incredible 👍👍👍.

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

    thanks a lot for lesson. Would be nice to see to prevent a page reload or route change when the user leaves the page.

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

    This is awesome. I'd love to see a video like this that is dedicated to just React Hooks and then Redux.

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

    Thank you Freecodecamp,
    You all put in a lot of work and i appreciate you all big time.
    You release vids & tuts in line with my learning journey. Respect 🤝

  • @TheTop-si5fo
    @TheTop-si5fo Год назад

    Awesome instructor!

  • @O1L2E3G
    @O1L2E3G 9 месяцев назад +1

    Tnx for ur work. I didn't watch the whole thing,
    But since you have a separate protected route (branch) (../host/..), why didn't you bring the authorization logic into the parent loader?
    Are you really going to duplicate the authorization logic into the each loader in all nested routes? What about : ../host/warehouse/add/product/...?
    await requireAuth(request)}
    >

    .....

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

    Thanks a lot for such great course!!!

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

    I am a simple man. I see Bob - I press like.

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

    Wowww amazing long time course.
    Thanks

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

    React router I have been waiting for this video

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

    Simply Awesome!

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

    I was looking for a complete React Router v6 course long time ago! Thank you so much!

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

    incredibly helpful. thank you so much for your time !

  • @toleenhajkassem6154
    @toleenhajkassem6154 11 месяцев назад

    Thank you so much !!!

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

    plz do more react videos on each topic like this in depth

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

    This was great thank you

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

    Completed!

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

    This is helpful ❤

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

    redirect() is not working when doing in localhost.
    Any ideas to fix this

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

    absolute banger!

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

    Best course

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

    Could you make video where you teach “outlet” from react router dom ? Did not find any video about it !

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

    I really like this channel

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

    7:36 my redirect () is not redirecting to host please any with solution shall help me

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

      return window.location.href = '/host';

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

    Try making a fullstack app with Angular as Frontend and Java or Golang as Backend.
    Thanks 😊

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

    gys , I have a question , how much time did you spend in this course?

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

    Could you make video where you teach “outlet” from react router dom ? Did not find any video about it

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

    Thank you very much

  • @AayushPoudel-ep7gy
    @AayushPoudel-ep7gy Год назад +1

    thank you

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

    Thanks for the awsom video. I'm using router dom v6.11 and have problem redirect host and its child components to login page. It either breakes or does not navigate to login. I already tried useHistory and useNavigate, but have the same issue. Could be that the backend has some problem with this version?

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

      import { redirect } from "react-router"
      export async function requireAuth() {
      const isLoggedIn = false
      if (!isLoggedIn) {
      const response = redirect("/login")
      response.body = true
      throw response
      }
      return null
      } use this... issue is from mirageJS and the latest version of RRD

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

    2:56:00 completed

  • @alizarweto8437
    @alizarweto8437 6 месяцев назад +1

    It's Going well upto first 7:30 hrs. But after it...I pray. When it( basturd ). Will be finish. frequent saw ti
    me... over all totally bored.😢

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

    2024, help please why if I refresh the page of "/vans" its giving me:
    Error: Unexpected token '

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

    Question: Seems some UI part we don't need or MUST use route, right? Like /host/vans/:id vansDetail page, bottom 3 tabs, we could use components to show/hide them directly? So how should we tradeoff when it should be route and when it should not.

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

    Thank you !

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

    Wow! Amazing!

  • @sazk4000
    @sazk4000 Год назад +7

    i don't have 9 hours free. i'll just go and read the documentation

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

      Really. 9-hour course just to learn how to use one library. 12 hours - it's the "Fast AI" machine learning course.

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

    Are you hacker man ! , Whatever I search to learn and you have awesome course on it

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

    Thanks

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

    is not rendering the component to prevent unauthorized usage of the service is a good way to protect the service?

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

    Let's create a channel that allow all of us here to join one platform and create react project and allow everybody to add their piece to it from ground to fully fletch full working site