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.
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
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
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
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.
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!
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!!
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.
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.
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 !
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;
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.
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.
@@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
@@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 ✌
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.
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 🤝
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 }
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!??
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.
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 )
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.
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
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
I have a question if u have a async fetch function that u return await res.json() do you need to await it when u call it in the loader? Shouldn't it be resolved?
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)} >
I can' t deploy the finished project at netlify. I took the code from the last scrim, pushed it with git, but I get an error. [vite]: Rollup failed to resolve import "react-icons/bs" from "/opt/build/repo/pages/Host/Dashboard.jsx". 12:16:32 PM: This is most likely unintended because it can break your application at runtime.
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?
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
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.
12hrs! Beginner?! 💀💀💀💀💀💀💀💀💀💀💀💀
I learned react from him too. he is the best.
@@NobleOsinachi Yes and 13 hours react advanced (including the react router)
@@Arcanist1010where can I find this course ?
yes, me2. he did a great job at that video.
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.
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
Bob Ziroll you are an excellent teacher. This is absolute freedom from tutorial hell.
The way he breaks down the whole topic is just fantastic. Appreciate
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
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
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.
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!
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!!
The pitch of his voice has already told me that you are going to master react-router... Love you Bob....😍🙏
I have never seen a best teacher like Bob ZIroll
He has a brilliant teaching skill ❤. I love his teaching method
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.
Bob ziroll is a powerful teacher, incredibly helpful course🙏 would love to see a course like this for react hooks
I love the way that Bob Ziroll Teach great job thank you so muach for making this available for freen see you on scrimba
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
}
Thanks 🙏
was breaking my head. Thanks for the help!
Thanks, you saved my time😄😄
thanks a lot. it took me hours but I couldn't solved it.
I get a 'Body is a read-only property' error. I'm developing in typescript. Not sure if that could be a problem!
I already know react router v6, but I am just here to hear bob ziroll voice. His voice is just perfect
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.
One of the best tech teacher.
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 !
I loved Bob's React course. This will be fun coding allong.
Great tutorial that i ever watch so far about react router
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
It's almost like you knew I needed this.
incredibly helpful. thank you so much for your time !
Amazing Course. Thanks!
thanks for the new knowledge about react-router bob, what a great free course
scrimba and bob ziroll helps me alot !!!!!!!!!!!
Always incredible 👍👍👍.
Bob ziroll is a beast i learnt react from his course and cany wait to start this course
Bob Ziroll, you are a great Master, thank you so much for this exceptional tutorial !!
thank you Bob Ziroll you did a great job .i love this video you make it easy and Cristal clear .
Thanks a lot for such great course!!!
I was looking for a complete React Router v6 course long time ago! Thank you so much!
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.
This is awesome. I'd love to see a video like this that is dedicated to just React Hooks and then Redux.
Awesome instructor!
learning react with bob is amazing ♨♨
Damn never imagined a freaking 9 hours course on JUST React Router 😮
Kudos to FCC 🔥
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.
@@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
@@phongphanthanh6878 reading docs is a good practice and is recommended.
@@riturajpathak1905 watching also
@@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 ✌
Wowww amazing long time course.
Thanks
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
Thank you all information you gave us
This video helped me a lot! Thank you!
We need an exclusive course covers all the hooks please
Thank you so much for such an amazing constant 👌👍🤝🤛👏🤲👐✌️🙏
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.
This was great thank you
2:19:29 I love your teaching methodology, thanks :3 see u at the end of the course
Simply Awesome!
plz do more react videos on each topic like this in depth
Awesome course 🔥🔥🔥
Best Video on React Router Dom 😇😇😇😇😇😇😇😇😇😇😇
Guru ji you are the best
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 🤝
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
}
Thanks, helped a lot 😊
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!??
@@JavadMoghaddam-dq9bd you need to return null or function where youre calling your authRequire
thanks buudy, saved my day
Thanks bro, you just saved me days of trying to figure this out.
Thank you !
I really like this channel
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.
same
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
React router I have been waiting for this video
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 )
So if u don't need to learn them both?.. U need to learn only next js then?
@@HocineKamikaz there are differences, like with everything. You can use nextjs or react router
Wow! Amazing!
absolute banger!
thank you
thanks a lot for lesson. Would be nice to see to prevent a page reload or route change when the user leaves the page.
Completed!
Thanks
Thank you so much !!!
Thank you very much
I have a problem with redirect(url) function, it doesn't redirect me to the login page.
This guy is too good.... Glued for 2 hours and still counting
I am a simple man, I see bob ziroll teaching a course, I tap on it
I have mastered the react full and i tell you i am comfortable building react full e-commerce sites
This is helpful ❤
Best course
Try making a fullstack app with Angular as Frontend and Java or Golang as Backend.
Thanks 😊
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.
Bob Ziroll 🙏
You are the best in the world and will like you to do React-native full course from zero to Hirable similar to the react course
Great 👍
Is there an advantage/problem with using React Hook Form together with (or instead of) the Form component from React Router?
gys , I have a question , how much time did you spend in this course?
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
is not rendering the component to prevent unauthorized usage of the service is a good way to protect the service?
Woooo 🎉🥳🔥
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
Lmao what did they do 5 hours before? 😂
Can i ask you why is this course 9h length while most of react routers tutorials are 1h or 1h and and half
Are you hacker man ! , Whatever I search to learn and you have awesome course on it
redirect() is not working when doing in localhost.
Any ideas to fix this
What is the alternative way of using prompt in react-router-
dom since it's no more available on version 6.15?
Will there be any course on mern stack on the future?
i don't have 9 hours free. i'll just go and read the documentation
Really. 9-hour course just to learn how to use one library. 12 hours - it's the "Fast AI" machine learning course.
I have a question if u have a async fetch function that u return await res.json() do you need to await it when u call it in the loader? Shouldn't it be resolved?
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)}
>
.....
I can' t deploy the finished project at netlify. I took the code from the last scrim, pushed it with git, but I get an error. [vite]: Rollup failed to resolve import "react-icons/bs" from "/opt/build/repo/pages/Host/Dashboard.jsx".
12:16:32 PM: This is most likely unintended because it can break your application at runtime.
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?
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
is it still worth learning to code when it exists already AI like chatGTP? It is not sarcasm, on the contrary, it is a serious question.
cool!
please there is an issue when cloning the repo to get the assets , It tells me that its been deleted
with `git status`
Bob 💫🙇
7:36 my redirect () is not redirecting to host please any with solution shall help me
return window.location.href = '/host';