Тёмный

React & Material UI #21: Drawer & Drawer + React Router 

Anthony Sistilli
Подписаться 92 тыс.
Просмотров 76 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 138   
@sadhucat4476
@sadhucat4476 4 года назад
So thoroughly explained, the communication and teaching quality here really stands out in comparison to other youTube tutorials. This channel is gonna get big.
@rupindamanalu8297
@rupindamanalu8297 4 года назад
Good teacher. I am very grateful, this is the answer to my comments a few days ago. very, very thankful, you are an amazing teacher.🙏
@AnthonySistilli
@AnthonySistilli 4 года назад
Thank you! 😃 I really appreciate the kind words and I'm glad it helped Rupinda :)
@rupindamanalu8297
@rupindamanalu8297 4 года назад
@@AnthonySistilli Yes, it helped. Thank you 😇😊🙏
@MrAndreasBlaa
@MrAndreasBlaa 3 года назад
With the Runescape in the background aswell - my man! Thanks
@gobishanthan7664
@gobishanthan7664 3 года назад
Hey everytime i have a question and check youtube , your videos are the ones that actually help me solve my issues... thank you so much made a huge difference in my life....
@ninjadinosaurpants
@ninjadinosaurpants 2 года назад
This is one of the best tutorials for MUI components EVER! Thank you thank you! Please keep making videos :)
@thisnicknamelee1799
@thisnicknamelee1799 4 года назад
I watch every video in your material ui & react series! Thank you very much!
@salmonkitty9205
@salmonkitty9205 4 года назад
Thank you very much! I'm an Industrial Engineer, but this is my first time working as a Developer. I've been working as Backend Developer (Node JS, Express JS) for the past 6 months. Backend came naturally to me , while Frontend is challenging. So far, your tutorials are the best for me! It's direct to the point and covers much all the basic and necessary concepts needed especially for newbies like me. Thank you ~ from Philippines! :)
@eunsunkim2496
@eunsunkim2496 3 года назад
Thank you soooo much. You're actually much better than some guide books I bought from a bookshop.
@circomono
@circomono 2 года назад
My man, thank you so much for the content, your way of explaining is so easy to understand
@ApurvKhare
@ApurvKhare 4 года назад
You are awesome. This is the only playlist with in-depth component exploration of Material-UI. Keep up the work and soon you'll be growing exponentially on RU-vid.
@mfontana1968
@mfontana1968 3 года назад
Thank you so much for this video, and thank you again for all your videos.!!! From Argentina with low level of english... but I understod every thing. You are awesome!!!
@khandoor7228
@khandoor7228 4 года назад
Great Job Anthony. I love the Drawer component and use it in almost all of my apps. Excellent work!!
@AnthonySistilli
@AnthonySistilli 4 года назад
Glad you like it! And yeah, the Drawer is a staple in almost every webapp :D
@v_lix
@v_lix 4 года назад
The moment we all been waiting for.. thank you Anthony for making this series! 👍
@AnthonySistilli
@AnthonySistilli 4 года назад
Haha glad you liked it Felix :) Thank you for the kind words!
@mandihaase2744
@mandihaase2744 3 года назад
Wonderful explanation! I was really struggling with how to use React Router and the drawer Material UI component and I came across your video. Please keep making content like this on how to implement Material UI with functionality. Thank you so much!
@cthulhulalala7182
@cthulhulalala7182 2 года назад
Thanks a lot man. Needed this for a project. Got a lot to learn from this one video. withRouter is amazing.
@AnthonySistilli
@AnthonySistilli 2 года назад
Glad it helped!
@mingzhao3137
@mingzhao3137 4 года назад
Thanks Anthony for this new post, I learnt something new about the react router, cheers!
@AnthonySistilli
@AnthonySistilli 4 года назад
Great to hear that!! React router is awesome haha - very useful even outside of MUI projects.
@arthurhovhannisyan31
@arthurhovhannisyan31 4 года назад
Anthony you are doing great videos! Thank you very much!
@alisayed_95
@alisayed_95 4 года назад
I'm the one who left the comment hahahhaha thank you very much for your great and hard effort We really all appreciate that much
@AnthonySistilli
@AnthonySistilli 4 года назад
Ayy thank you for the suggestion Ali! I hope it answered any questions you might have had about using Drawers :D
@thekingdeimos
@thekingdeimos 3 года назад
Excelente tutorial! Gracias por el esfuerzo que estuviste realizando. Estoy a la espera de nuevo contenido, Saludos!
@zwelinnhtet2235
@zwelinnhtet2235 2 года назад
I hope you'd read my comment.! your channel saved me again. Thanks loop to thousands.
@Krazness
@Krazness 2 года назад
Exactly what I needed, Thank you so much
@AnthonySistilli
@AnthonySistilli 2 года назад
Glad it helped!
@sureshsambana5219
@sureshsambana5219 4 года назад
I am lucky enough to come across this video #Anthony to fix one issue while iterating over a list of icons (18:56). I spent couple of hours fixing this. Thank you #Anthony for an amazing series on MUI.
@mpazaryna
@mpazaryna 4 года назад
Excellent and very well done. Thank You!
@decryptroblox
@decryptroblox 4 года назад
This is a really great video, you explain react Router better than any other channel on RU-vid, if it is possible can you please cover the topic of floating action buttons, especially about the scroll to the top button. Thank you I hope you can see this comment.
@AnthonySistilli
@AnthonySistilli 4 года назад
Great suggestion! I haven't had any experience with floating action buttons actually - do you mind linking an example?
@decryptroblox
@decryptroblox 4 года назад
Anthony Sistilli Well great to hear that, In the material ui documentation there is a section for them. I will try and get the link
@decryptroblox
@decryptroblox 4 года назад
Anthony Sistilli I found a good example, it’s in this link at the last example there is a scroll to top button
@jacr207
@jacr207 3 года назад
Bro thanks, the tuto was very useful.
@viethuynh4121
@viethuynh4121 3 года назад
yeah! video very useful with me thanks Anthony
@alirezasharifpour4883
@alirezasharifpour4883 4 года назад
Your content is really amazing !
@ankitasingh2563
@ankitasingh2563 2 года назад
Thanks, It was a great help😄
@carlosraul6578
@carlosraul6578 3 года назад
the tutorial was amazing , thanks a lot
@meghalbisht6768
@meghalbisht6768 4 года назад
This is so cool , i recently had to submit a project and took 45 mins to build one, wish i knew this earlier : (
@stabbler
@stabbler 4 года назад
Struggling with this for a couple of days and voila! You read thoughts 😂
@AnthonySistilli
@AnthonySistilli 4 года назад
Haha well I'm glad I posted it when I did then!!
@alexpetrov2531
@alexpetrov2531 3 года назад
Liked and subscribing, that is awesome and you sir are awesome as well, I've been trying to figure out why drawer is not showing up and had my aaaaah moment when you've set the "open prop" and video contains quite a lot of useful material, thank you.
@vikashkumar-st4ug
@vikashkumar-st4ug 2 года назад
Very helpful ... thank you :)
@user-zp1dv4yh5e
@user-zp1dv4yh5e 4 года назад
If someone gets an error "Invariant Violation: You should not use outside a ", then do it like this //your routes here import the 'BrowseRouter' from same library i.e "react-router-dom"
@MiguelMusic123
@MiguelMusic123 3 года назад
What if we get this same error but with the withRouter(Drawer) when we try to get the history props into Drawer.jsx? "Invariant failed: You should not use outside a "
@user-zp1dv4yh5e
@user-zp1dv4yh5e 3 года назад
@@MiguelMusic123 what is withRouter( Drawer) , are you talking about material ui Drawer? Share the code
@MiguelMusic123
@MiguelMusic123 3 года назад
@@user-zp1dv4yh5e It's what he writes on line 52 at 23:38 in this video
@user-zp1dv4yh5e
@user-zp1dv4yh5e 3 года назад
@@MiguelMusic123 did you wrap the whole thing inside browserRowter
@MiguelMusic123
@MiguelMusic123 3 года назад
@@user-zp1dv4yh5e If you wrap the withRouter() or the export default in browserRouter it won't export anything. Instead my workaround was to remove withRouter from the export and remove the usage of props, and instead of using history in my onClick functions, I've used: window.location.href = "./"
@ryangotesman1020
@ryangotesman1020 4 года назад
Quality content. Thanks
@AnthonySistilli
@AnthonySistilli 4 года назад
Glad you enjoyed it Ryan :)
@chanwingkei1576
@chanwingkei1576 4 года назад
Thanks for the video!! Your material UI video is clearest. When you have time, can you do some about Menu and Form?? Appreciated!
@michelreyes2976
@michelreyes2976 3 года назад
Nice video, thanks. how can I handle Drawer and AppBar toggle show/hide. Where is the best place to put the state?
@SaurabhNarhe
@SaurabhNarhe 4 года назад
Great content, if possible please make video series on building a react app end-to-end with writing code, testing, linting etc.
@AnthonySistilli
@AnthonySistilli 4 года назад
Thanks for the idea! After the MUI series is done I may take on a big project and do that actually :)
@RBC2_
@RBC2_ 4 года назад
Thanks Anthony. How do you know the "onClick" and "key" property are available ? I don't see them in the API guide.
@hardikchawla4966
@hardikchawla4966 4 года назад
Great Content Anthony !. I just had one doubt why have u wrapped Drawer component in withRouter HOC ? In the earlier videos you were passing history object directly to the Router wrapper Is withRouter HOC another way to get history object ?
@dipanwitabarik7533
@dipanwitabarik7533 3 года назад
Hi Anthony! Great tutorial. Can you do something with a login page, and on successful login open the above drawer with React routing.
@אריאלטרבלסי
@אריאלטרבלסי 4 года назад
the withRoute option was worth making all this video... instead of passing props i just can wrap it with withRouter and thats it.. i didn't know about this option
@sparshsinghal9238
@sparshsinghal9238 3 года назад
He is so fast. Crazy.
@medusa121
@medusa121 4 года назад
you are the best ever!
@decryptroblox
@decryptroblox 4 года назад
This is just a quick question, is there an alternative to the Nth of type in material ui styles
@shubhammittal2367
@shubhammittal2367 3 года назад
thanks a lot sir😍
@carlosraul6578
@carlosraul6578 3 года назад
I built a project with multiples components to divide the logic of the Drawer, the Navbar and the ListItem , even I am using context. the navigation with the reac-router, works too, the only thing, is the animation o the list , the animation works , but when I add the the code history.push('/yourRoute'). , the animation of the List , doesn't seem correctly
@oscargm1979
@oscargm1979 3 года назад
So good, master :)
@DaveTradeFx_01
@DaveTradeFx_01 3 года назад
Hi, can you make a video regarding the data virtualization (Chart JS) with react js?
@giancarlozabaleta3518
@giancarlozabaleta3518 4 года назад
Once again, excellent video! Is there a way to implement the itemsList objects but with appBar instead of drawer?
@MuhammadMamooji
@MuhammadMamooji 4 года назад
Ide love to see you making a material UI medium sized project, ik you did the Pokedex but a portfolio of something would be awesome
@AnthonySistilli
@AnthonySistilli 4 года назад
Cool idea! I spend a lot of time coding MUI projects outside of youtube actually - most of them are for consulting clients / my own sites... maybe I should do a demo of one once it's built :)
@MuhammadMamooji
@MuhammadMamooji 4 года назад
@@AnthonySistilli plzzzzzz 🤞🤞
@sachinaugustine9023
@sachinaugustine9023 4 года назад
Hey great video, clean explanation ... can u make a video on scrolltop
@kaushik1998
@kaushik1998 2 года назад
Could you please tell me how to nest a permanent/persistent drawer inside a div ?
@abhaydwivedi9282
@abhaydwivedi9282 3 года назад
0:40 Subscribe - Done Like - Done (Extra) Bell Icon - Pressed and chosen All
@אריאלטרבלסי
@אריאלטרבלסי 4 года назад
hey Anthony can you make a video about how to do conditional css depending on the screen size in material ui? i thought i saw you do something similar with the breakpoints but cant find it
@Gourab__paul
@Gourab__paul 2 года назад
I want to create a persistant drawer in materials UI where I want to fix the drawer header. The body of the drawer should be scrollable and will contain a large list. I am unable to figure out on how to implement this
@shoebjoarder
@shoebjoarder 3 года назад
Could you please put the rest of the material UI videos (from 20 to 31) in the same playlist as well?
@AnthonySistilli
@AnthonySistilli 3 года назад
They should be in the Material UI playlist! I checked and it said it had 31 videos (:
@shoebjoarder
@shoebjoarder 3 года назад
@@AnthonySistilli My bad, for some reason the entire page didn't load when I was watching the 20th video.
@rajatverma7862
@rajatverma7862 2 года назад
hi, I have a question, withRrouter() is not working ERROR: export 'withRouter' (imported as 'withRouter') was not found in 'react-router-dom', please help
@gerardsegismundo8931
@gerardsegismundo8931 4 года назад
Can you also do advanced stying in JSS? like nesting pseudo elements.. I'm getting a hard time on this UI framework. I'm glad i found your channel and good tutorials. THANK YOU.. 👍
@AnthonySistilli
@AnthonySistilli 4 года назад
Great suggestion! And thank you for the kind words Gerard :D
@changemaker2909
@changemaker2909 4 года назад
Dear Sir i am struggling with clsx .Can you provide tutorial about that
@alexberezkin
@alexberezkin 4 года назад
Hi! Thanks to your series I managed to incorporate MUI in some of my projects, and now I'm quite comfortable with it. Glad I found your channel! The only thing I'm concerned is bundle size: even with all careful optimizations suggested in MUI documentation it costs bundle about 100 KB (parsed, that is, minimized but not gzipped). With React it's above recommended 244 KB so webpack gives me a warning. Is that okay? Or do I miss anything?
@anishsuman1371
@anishsuman1371 2 года назад
Awesome
@sparshsinghal9238
@sparshsinghal9238 3 года назад
what about creating the links in navigation with the help of Link component from react-dom-router library. ABC < /Link>
@alishahzil721
@alishahzil721 3 года назад
Anthony can you help us to create Material-UI Open Drawer Underneath AppBar ?
@wizhaa
@wizhaa 3 года назад
Do you think using the is better or use the withRouter?
@RakeshKumar-zj4hu
@RakeshKumar-zj4hu 3 года назад
Hello Anthony, need a help here.. I am trying level hard to bring a sign in and signout page which does not have drawer in it, but not sure how to structure in app.js. any tips?
@peterfernandes9011
@peterfernandes9011 3 года назад
Thanks!
@anonymoussloth6687
@anonymoussloth6687 4 года назад
Hi, how do we add a user profile pic and name on the top of the drawer? And when it is clicked, it takes them to a user profile setting page
@Jay-jo5dm
@Jay-jo5dm 3 года назад
gratz on 96 str
@Gandolfof
@Gandolfof 4 года назад
Thanks a lot! I have a question. Couldn't you use react hooks instead of withRouter? I don't like HOCs and I'm always looking for an alternative way using hooks.
@yoyo26-34
@yoyo26-34 4 года назад
just import useHistory from react-router-dom and set the history variable ; const history = useHistory()
@algunoacepta
@algunoacepta 3 года назад
Hey, I am having an error to import Switch. I was googling and found Switch has been removed from react-router-dom. Do you have the same example using Hooks?
@ilovepandaypoe6056
@ilovepandaypoe6056 4 года назад
awesome! danke
@henning1weise
@henning1weise 3 года назад
Hey great video. But in the end, i get the following error message: You should not use outside a . Can u help me out there?
@keerthanakeerthu8083
@keerthanakeerthu8083 3 года назад
Same error here
@keerthanakeerthu8083
@keerthanakeerthu8083 3 года назад
Did u get it
@HungLe-py8fn
@HungLe-py8fn 3 года назад
Help, it failed while compiling with the error You should not use outside a
@davian9872
@davian9872 3 года назад
RuneLite? Oh hell yeah, this man plays OSRS
@habbabbutt3447
@habbabbutt3447 2 года назад
How can I change the drawer background color?
@stabbler
@stabbler 4 года назад
In order to get it work, I needed to wrap with Otherwise I get this error: Error: Invariant failed: You should not use outside a
@AnthonySistilli
@AnthonySistilli 4 года назад
Sorry about that! I forgot to show (it;s in the codesandbox) that I'm importing browserRouter and wrapping it inside the index.js
@vineetpatel6516
@vineetpatel6516 3 года назад
Same here
@mrgame6584
@mrgame6584 3 года назад
May Allah reward you ❤️️
@PauloCesar-td9xo
@PauloCesar-td9xo 2 года назад
THHHANKS A LOT
@omirosvasdaris7697
@omirosvasdaris7697 3 года назад
Good, but turn on focus assist ;)
@razmiqayelyan1497
@razmiqayelyan1497 2 года назад
Good👍
@HarshSingh-zf7tw
@HarshSingh-zf7tw 3 года назад
Why drawer width doesn't increased the width of drawer?
@sumitduwal7022
@sumitduwal7022 3 года назад
How to add sub menu (Nested List) ?
@alexandergeorgesquire220
@alexandergeorgesquire220 7 месяцев назад
thanks
@manikantadasar6554
@manikantadasar6554 4 года назад
how to change styles of drawer...?
@Jay-jo5dm
@Jay-jo5dm 3 года назад
gratz on 95 hp
@jaredbaker6229
@jaredbaker6229 3 года назад
Anyone else having issues with the { withRouter } part? The current Drawer components from material ui - material-ui.com/components/drawers/#drawer - export like this: export default function MiniDrawer() {}. If you write this - export default function withRouter (MiniDrawer) {} - the console will not error, but when you reload your localhost, you will see this: "Identifier 'withRouter' has already been declared (92:24)". I have changed my importing to this - import { withRouter as withRouter1 } from "react-router-dom"; - however, it keeps throwing errors: "Identifier 'withRouter1' has already been declared (92:24)". The only difference I see from the video and the code provided by material is the "function" keyword. I am still new to React, but any guidance would help. Thank you.
@S4LTYT
@S4LTYT 3 года назад
how to make background dull with drawer
@nikkiabarca686
@nikkiabarca686 4 года назад
do you have a udemy tutorial?
@pradeeprana9393
@pradeeprana9393 4 года назад
how to add active class to links?
@MiguelMusic123
@MiguelMusic123 3 года назад
I think react-router-dom has gotten updated since this video and now we're getting errors saying we can't use Switches or withRouter outside a . For the first issue this can be easily fixed by importing and wrapping the Switches in However, I'm struggling to find a solution for withRouter, since if I wrap "export default withRouter(Drawer)" in BrowserRouter, it doesn't export anything anymore. Does anyone know the solution to this?
@MiguelMusic123
@MiguelMusic123 3 года назад
To answer my own question, what I did to solve this was to remove withRouter from the export and remove the usage of props, and instead of using history in my onClick functions, I've used: window.location.href = "./"
@keerthanakeerthu8083
@keerthanakeerthu8083 3 года назад
@@MiguelMusic123 can u send ur code
@ztaerkiller
@ztaerkiller 4 года назад
很好👌
@AdamMarcus930
@AdamMarcus930 3 года назад
I love you.
@Deepak-gj4ni
@Deepak-gj4ni 3 года назад
In Rahul Gandhi's tone I would say "MAZA AYA AUR Y MAZA SBKO LENA CHAHIYE ❤️"
@itengineeremmanuel2284
@itengineeremmanuel2284 2 года назад
Not updated with the actual version
@stabbler
@stabbler 4 года назад
Just testing, I'm trying to render /login but the component is been rendered in the same space as contact,about and home. How could I have my login page rendered without having the drawer aside ? I've got this example github.com/mui-org/material-ui/tree/master/docs/src/pages/getting-started/templates/sign-in I've figured out that is been rendered at first for every component inside pasteboard.co/JbYPzRN.png You could do an extension to this video just explaining that. Your tut is a start for a bunch of people and implementing login would help us to get the ball rolling. Thanks!
@AnthonySistilli
@AnthonySistilli 4 года назад
If your drawer is rendered in App.js alongside with the rest of the page routes (including Login), then it will show up on the side regardless of the page it's in. To have it not show up, either the login component has to be rendered somewhere that the Drawer isnt, or you could make a custom wrapper that adds drawer to all the other components, or the fastest way (but maybe not the best long term) is to get the location.path from react router props, and conditionally render the drawer only if the current path isn't login. I.e { location.pathname !== '/login' && } I think
@danielc4267
@danielc4267 3 года назад
1:12 Why does my Linux have Windows notification sound? LOL
@BabarAli-yb1eg
@BabarAli-yb1eg 4 года назад
Ma man
@AnthonySistilli
@AnthonySistilli 4 года назад
Ayyy :)
@vincentvermeulennz
@vincentvermeulennz 4 года назад
gz on 96 strength
@mrbeanst4923
@mrbeanst4923 3 года назад
runescape
@mrbeanst4923
@mrbeanst4923 3 года назад
Lol, are you afking on runescape while making this video? :D
Далее
THIS PORTFOLIO IS INSANE - Roasting your dev sites #3
17:59
NAH UH
00:17
Просмотров 2,1 млн
Думайте сами блин
18:15
Просмотров 257 тыс.
Material UI React Tutorial
42:59
Просмотров 496 тыс.
React & Material UI #24: Snackbars + Snackbars & Redux
20:49
Marc Lou Situation Explained
16:34
Просмотров 17 тыс.
Is Hono the holy grail of web frameworks?
18:33
Просмотров 5 тыс.
React & Material UI #28: MUI Forms + Formik
25:40
Просмотров 33 тыс.