React Router in Depth #3 - Router Provider, createBrowserRouter & Outlet

  Рет қаралды 114,093

Net Ninja

Net Ninja

Күн бұрын

Пікірлер: 90
@yerneroneroipas8668
@yerneroneroipas8668 10 ай бұрын
Just 6 minutes in and you helped me solve an issue chatgtp was walking in circles with. Thank you.
@NetNinja
@NetNinja 10 ай бұрын
Awesome :)
@ifechukwu7379
@ifechukwu7379 Жыл бұрын
Your calm and cool voice is the key to your success. It is soothing to the mind while it allows the brain to understand something so cryptic as React js
@traezeeofor
@traezeeofor Жыл бұрын
Incidentally the 2 tutorials I first learned React Router are now outdated. This video did an excellent job of presenting version 6.4 to me. Thanks so much!
@yu_pal
@yu_pal Жыл бұрын
This is one of the best code exspliners video I.have seen in years. Thank you
@youcefmantas4944
@youcefmantas4944 Жыл бұрын
your a legend you better open a school called ninja way or something like this where u give all your lessons in a real compus cause man i live so far away but i would come to learn from the master of teaching !!
@NetNinja
@NetNinja Жыл бұрын
Aha, thank you Youcef :) very kind!
@Teddyrobinson
@Teddyrobinson 10 ай бұрын
I was gonna ask why it became so complicated, but I see everyone else already commented that too
@musafirfisabillah6566
@musafirfisabillah6566 2 жыл бұрын
I LOVING THIS COURSE SO FAR
@NetNinja
@NetNinja Жыл бұрын
Awesome, thanks for watching Musafir!
@DevDailyChallenge
@DevDailyChallenge Жыл бұрын
Thank you for introducing the new React Router
@tsots2501
@tsots2501 4 ай бұрын
this seems so much more complicated than the previous basic react router stuff for achieving the same effect. Could someone explain the benefit of this method over the previous lesson's?
@terezachudejova4189
@terezachudejova4189 4 ай бұрын
I am wondering the same. I get the logic of the previous tutorial pretty fast. But this new version of concept seems too hard to grasp for me and I just did ctrl c, ctrl v without deeper understanding.
@vishal40007
@vishal40007 3 ай бұрын
The documentation says "enables the v6.4 data APIs like loaders, actions, fetchers and more."
@maskman4821
@maskman4821 2 жыл бұрын
Thank you Shaun for introducing the new React Router, the new features such as layout is acting like Next, Nuxt, Sveltekit, I assume it is inspired by these advanced frameworks 😘
@ibiyemisamuel6082
@ibiyemisamuel6082 Жыл бұрын
Yes!🔥
@Aditya-jo1of
@Aditya-jo1of Жыл бұрын
02:56 tree of routes🤣🤣 the way he spoke routes
@romimaximus
@romimaximus Жыл бұрын
Reallly !!! ... So we went from a nice react-router layout and ease to work with, ....to this very confusing and complicated react-router layout !!! and the question is WHY !!! they have to complicate things ?? 😂😂😂😂
@OnlyJavascript
@OnlyJavascript Жыл бұрын
they nicely packed and found a house-fly inside it. All they did was to take out the housefly without making too much damage to the package. They at least have to strip off some layers before reaching it and took out the housefly. Guess what, release date has come and they decided to do it without wrapping it back. hence concluded. 😂😂😂😂
@OnlyJavascript
@OnlyJavascript Жыл бұрын
whatever, we have god's hands like NetNinja who can deliver it so good.
@dariusz4434
@dariusz4434 Жыл бұрын
I totally agree. The normal BrowserRouter was so siple and made a lot of sense. But now this whole boilerplating is just makes no sense and complicate everything.
@code2287
@code2287 Жыл бұрын
I am not using the createbrowser router thing lol unless I have to ....the regular way still works fine but am down with outlet tho
@surajbera865
@surajbera865 Жыл бұрын
This router system is as complicated as that in angular...
@wakeup_programmer
@wakeup_programmer 8 ай бұрын
wow that was a fabulous explanation, thank you so much net ninja, it was helpful
@NetNinja
@NetNinja 8 ай бұрын
Glad it was helpful! :) thanks for watching
@stefanmasic1287
@stefanmasic1287 Жыл бұрын
I'm amaized. So clear definitions. Perfect video.
@JJ-nm8sh
@JJ-nm8sh Жыл бұрын
Awesome vid. Very nicely explained about the element= on Route. 👍
@NetNinja
@NetNinja Жыл бұрын
Thanks :) Glad you liked it!
@FrostDrive
@FrostDrive Жыл бұрын
holy crud they made the new way so much more complicated.
@user-xedwsg
@user-xedwsg Жыл бұрын
yup, no unceseary!
@khalidsultani1896
@khalidsultani1896 Жыл бұрын
thanks for posting this awesome series .
@NetNinja
@NetNinja Жыл бұрын
Glad you enjoy it!
@levm_prog1461
@levm_prog1461 Жыл бұрын
Thanks for this video, you really helped me!
@Ayoubased
@Ayoubased 10 ай бұрын
bro Im so confused with this outlet and why we use it, basically having Route path and createBrowserRouter with the path and element is enough to navigate, I have it in my code but dont understand it
@mikaelnilsson8041
@mikaelnilsson8041 Жыл бұрын
Great video, but why can't I access a particular page by entering the URL directly in the URL-field of the browser? E.g. /page1. I can only access /page1 if I use a link on the web page, otherwise I get a 404. This works great during development, but not when its built. I guess I need to create URL rewrite rules to get it to work?
@waltert9
@waltert9 Жыл бұрын
awesome stuff, really easy to understand now
@NetNinja
@NetNinja Жыл бұрын
Good to hear that Walter :)
@BillaSaheb786
@BillaSaheb786 2 жыл бұрын
Great Marvelous....Also put vue 3 and nuxt 3 project
@ahmeddotgg
@ahmeddotgg 2 жыл бұрын
Thank you very much Shaun, will you also cover the method they used in tutorial in react-router-dom documentation page ? and thanks in advance
@afewthoughts7755
@afewthoughts7755 2 жыл бұрын
Any plans for new svelteKit course as the sveltekit 1.0 just released?
@catreunion
@catreunion 2 жыл бұрын
Thank you teacher 🙏🏻
@NetNinja
@NetNinja 2 жыл бұрын
You are very welcome, thanks for your support Isaac!
@scarredgaruga
@scarredgaruga Жыл бұрын
i have a question. If i have a sidebar for layout, should i placed in too? just like navbar?
@sejalsankhe3786
@sejalsankhe3786 Жыл бұрын
yup according to me you will just need to custom css it and add flex-column
@stephenagyei2740
@stephenagyei2740 2 жыл бұрын
great video...what if you have and admin page with login and register pages...And you dont want to show the header and footer on those pages
@code2287
@code2287 Жыл бұрын
You can make it a route path on its own which won't be part of the parent layout
@looty20-q8q
@looty20-q8q Жыл бұрын
You're a legend.
@AkashYadav-di6kd
@AkashYadav-di6kd 4 ай бұрын
Thank you very much, sir
@NetNinja
@NetNinja 4 ай бұрын
You are most welcome! :)
@Zezinhodovasco
@Zezinhodovasco Жыл бұрын
why my main outlet component stay in the same place of my header? And not below it? I did the same thing as you
@vijaycheza
@vijaycheza 2 жыл бұрын
Awesome videos dude!
@NetNinja
@NetNinja 2 жыл бұрын
Thanks!
@utkarshguruji8894
@utkarshguruji8894 8 ай бұрын
In lecture 3rd , Navlink and links are working even without putting them in Homelayout as prop
@bishwajeetpandey1570
@bishwajeetpandey1570 Жыл бұрын
You are the best❤
@GethushanRavichandran
@GethushanRavichandran 2 жыл бұрын
Please create a Playlist about "Creating E-Commerce Website using Strapi , MongoDB, React , and Stripe"
@nickwoodward819
@nickwoodward819 Жыл бұрын
...using only your left hand. thanks.
@cheques_appeal
@cheques_appeal Жыл бұрын
Thanks for this!
@NetNinja
@NetNinja Жыл бұрын
No problem, hope it helped :)
@realgecko
@realgecko Жыл бұрын
Thank you very much!
@MostafaEl-Sayed-ld3he
@MostafaEl-Sayed-ld3he Жыл бұрын
am I the only one who see this version is so complicated?
@ibiyemisamuel6082
@ibiyemisamuel6082 Жыл бұрын
It's seems, but it's not. It actually provides more flexibility.
@Joshua.Developer
@Joshua.Developer 3 ай бұрын
@@ibiyemisamuel6082 New devs don't know enough to make those calls this is a headache bro. This is the bad thing about React too much flexibly great if your experienced but if your trying to learn.... there are prob 9 different ways of doing this.
@fireace5920
@fireace5920 Жыл бұрын
anyone know how to add page transition animation with router provider and framer motion? I've try putting animatepresence around the router provider and it has not been working
@outletshelssy
@outletshelssy Жыл бұрын
Excelente Video
@NetNinja
@NetNinja Жыл бұрын
Thanks! :)
@thedipushut
@thedipushut Жыл бұрын
How can i use this concept with protected route??
@mohamedyoussef8835
@mohamedyoussef8835 2 жыл бұрын
Awesome video +++++++++++ 😀
@leooramone
@leooramone Жыл бұрын
very useful
@matinisnotdefined
@matinisnotdefined Жыл бұрын
Thanks a lot
@FullStackAce
@FullStackAce Жыл бұрын
I was hoping this vid would have something on HashRouter, Oh Well :(
@Saldymedis
@Saldymedis Ай бұрын
Osss... 👍
@olegwork3355
@olegwork3355 Жыл бұрын
very informative thanks, their docs is completley unreadable... !
@NetNinja
@NetNinja Жыл бұрын
Glad you found it helpful Oleg!
@exe.m1dn1ght
@exe.m1dn1ght 11 ай бұрын
One question : Why ?
@MosesKuria-m8e
@MosesKuria-m8e Жыл бұрын
christ this was so confusing
@michalnowak2181
@michalnowak2181 Жыл бұрын
thx
@towatch
@towatch 2 жыл бұрын
♥️♥️🔥
@darelbvcr687
@darelbvcr687 Жыл бұрын
NextJs > React
@ibiyemisamuel6082
@ibiyemisamuel6082 Жыл бұрын
Yes 🔥
@mil0s251
@mil0s251 2 жыл бұрын
browser router
@akrammekbal8936
@akrammekbal8936 Жыл бұрын
omg vujs is better
@mt.designers
@mt.designers Жыл бұрын
Totally agree. I'm also coming from Vue.js and in comparison, React is just ridiculously complicated. I mean they could have just created all of that and put it in one component just like Vue "RouterView" component.
@agoodmansaid
@agoodmansaid 6 ай бұрын
Geez! what a way to OVER-COMPLICATE a straight forward concept. What ever happened to "if it ain't broke..."?
@user-xedwsg
@user-xedwsg Жыл бұрын
This new way is TERRIBLE!
@bissogood
@bissogood 6 ай бұрын
ok so what in the heck happen to just importing BrowserRouter as Router, Routes, Route...etc This is STUPID!
React Router in Depth #4 - Nested Routes & Layouts
11:22
Net Ninja
Рет қаралды 79 М.
This is the Only Right Way to Write React clean-code - SOLID
18:23
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
UFC 310 : Рахмонов VS Мачадо Гэрри
05:00
Setanta Sports UFC
Рет қаралды 1,2 МЛН
All about Routing in React 2024
41:49
CodeHelp - by Babbar
Рет қаралды 34 М.
React Router - Complete Tutorial
23:53
Cosden Solutions
Рет қаралды 156 М.
React Router 6 - Full Course
9:44:43
freeCodeCamp.org
Рет қаралды 257 М.
React Routing and Context (useContextOutlet) - Best Way🔥
13:52
Studytonight with Abhishek
Рет қаралды 6 М.
React Router in Depth #1 - Introduction
7:11
Net Ninja
Рет қаралды 148 М.
Custom Protected Route Component in React
10:58
Cosden Solutions
Рет қаралды 52 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН