Learn React Portal In 12 Minutes By Building A Modal

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024

ความคิดเห็น • 236

  • @noashi45
    @noashi45 3 ปีที่แล้ว +94

    I am an experienced developer with 5 years of experience and it amazes me how much knowledge you have and how well you explain everything. This proves how well you know what you are teaching. I am far far away from your level and I was considering myself good haha. Need to watch more your videos and get better ! thank you

    • @allsunday1485
      @allsunday1485 ปีที่แล้ว +4

      If 5 years into the job you watch this and find ANYTHING that makes you say "wow how much this guy knows!", you're either the worst developer ever or just trolling.

    • @robertgioeli3211
      @robertgioeli3211 ปีที่แล้ว +24

      ​@@allsunday1485 🤡 I don't care if you're a developer for 10 years, there is always more to learn.

    • @SaadMahimkar
      @SaadMahimkar ปีที่แล้ว

      @@robertgioeli3211 this is nothing knew dear fellow, i haven't got my first job yet and see i'm here on this video, now you imagine where i will be in next 5 years.

    • @Go_with-Christ
      @Go_with-Christ ปีที่แล้ว

      @@robertgioeli3211 These videos are catored to beginners, not experienced devs. If youre any competent as an engineer you don't wow anywhere here

    • @vinu7473
      @vinu7473 11 หลายเดือนก่อน +2

      i've been a developer for 2 days & I just made a modal. give me your job pls.

  • @jstamariz
    @jstamariz 4 ปีที่แล้ว +153

    This guy makes me want to teach someone else everithing i know. I'm so grateful about this channel. ❤️

    • @ridl27
      @ridl27 4 ปีที่แล้ว +17

      actually, when you teach someone else, you start to understand things even deeper. cuz you kinda need to look at these things from different perspective.

    • @somsaksahawangmeak6911
      @somsaksahawangmeak6911 2 ปีที่แล้ว

      th-cam.com/video/6XTRElVAZ9Y/w-d-xo.html

  • @anuvette
    @anuvette 11 หลายเดือนก่อน +2

    what is the difference between using portals and tag? and whats better to use?

  • @ThisIsLiving__
    @ThisIsLiving__ 4 ปีที่แล้ว +2

    Thanks a lot for this tutorial
    i was using a package before you arrived without really understanding how to deal with Modal

  • @Avarn388
    @Avarn388 2 ปีที่แล้ว +3

    Good job. I'm working on a react project where we need to do a forum submission and I was thinking of using a Modal. I'll definitely be utilizing this to do it. Thank you very much.

  • @SaadAfzal-y9o
    @SaadAfzal-y9o ปีที่แล้ว

    i was having weird styling errors like i couldnt get all the components to have same modal style and some styling was not applying. i used portal and it just fixed everything in less than 1 min Love you dude Thank you so much

  • @JamesQQuick
    @JamesQQuick 4 ปีที่แล้ว +3

    Great video. I’ve been meaning to learn about react portal!

    • @ololade002
      @ololade002 3 ปีที่แล้ว

      Wow, look who we have here; I appreciate you James. Thank you for all you do

  • @md.akib5124
    @md.akib5124 4 ปีที่แล้ว +4

    I am more and more falling in love with your teaching style. Specially to understand react at deep level your tuts are so amazing

  • @uzairabdullah208
    @uzairabdullah208 2 ปีที่แล้ว

    That cool, calm and graceful style made me grasp a concept that I wasn't able to get for ages! Thankyou so much!!!!!!!!

  • @razvan.cirlugea
    @razvan.cirlugea 4 ปีที่แล้ว +1

    Last week I heard about Portals at work and didn’t actually know what they are, so I was planning to take a look at them. This video was exactly what I needed, love this channel ❤️

  • @okereobinna5033
    @okereobinna5033 ปีที่แล้ว

    Thanks Kyle for this short and practical tutorial. Time to get hands-on with Portals

  • @dharmang
    @dharmang 4 ปีที่แล้ว +9

    10:55 I just learnt this today what you taught is called event bubbling. 😅👍 And that is the feature of Javascript. You can even do the opposite of event bubbling which is event capturing or trickling which will call the onclick of child before parent as opposite of bubbling. JS has bubbling enabled by default.

    • @rovixen8668
      @rovixen8668 2 ปีที่แล้ว

      And i just leaner from you that the name of "that thingie with arrow functions" is called event bubbling and capturing

  • @DaWizardOfOz7
    @DaWizardOfOz7 2 ปีที่แล้ว

    I go to React Docs and read about portals and not really get what it is for. I come to Kyle's channel and understand what it is for and how to use it. So thankful for your lessons, man 🙏

  • @lonnybulldozer8426
    @lonnybulldozer8426 4 ปีที่แล้ว +43

    How did you add the talking circle in the bottom right? Was that React Portal?

  • @Felipe-53
    @Felipe-53 4 ปีที่แล้ว +1

    Thanks, my friend. You're a talented instructor.

  • @prashantkumar-oz2in
    @prashantkumar-oz2in 2 ปีที่แล้ว

    Specially signed in to comment that all of your tutorials are just amazing!... Thank you

  • @thecodeninjaeu
    @thecodeninjaeu 2 ปีที่แล้ว

    I don't know your name but dude, you are a blessing. You just helped me solve a major problem, man. Thank you so much

  • @goldenfibonacci7860
    @goldenfibonacci7860 3 ปีที่แล้ว +1

    Thanks for this tutorial! I’ve been learning about full stack development for the past year and your videos have been immensely helpful. Thanks for always getting straight to the point and keeping these videos short and sweet. Take care.

  • @rezakajbaf6702
    @rezakajbaf6702 3 ปีที่แล้ว

    Short, and to the point. Great tutorial.

  • @akashpatil8839
    @akashpatil8839 2 ปีที่แล้ว

    Thanks Man... really was scratching head reading docs, and you made the concept clear!!

  • @nickstaresinic9933
    @nickstaresinic9933 2 ปีที่แล้ว +1

    Concise and well-presented with very informative content -- and all in only 12 minutes. Very good job.

  • @md.shariarkabir7350
    @md.shariarkabir7350 4 ปีที่แล้ว

    you first made modal in general way then said what's wrong with this then go ... this is the best teching technique

  • @jamezrin
    @jamezrin 4 ปีที่แล้ว

    Thank you, you are a beast. I created a modal myself a while ago but fortunately (or not!) I didn't get to experience the side effects of not using portals, I didn't know the context of zindex... Thanks for this tutorial, it's something I didn't know I needed.

  • @akashddeepchitransh4537
    @akashddeepchitransh4537 4 หลายเดือนก่อน

    Best explanation on React Portals

  • @dudzpedra
    @dudzpedra 2 ปีที่แล้ว

    you are amazing! you can make it even easier than using an external library for just that purpose of creating a modal! I loved and I'm gonna use portals in every project from here on! I've also implemented functionality to click anywhere outside the Modal and trigger the event of closing the modal, it works great!

  • @MsAnnieHuang
    @MsAnnieHuang ปีที่แล้ว

    Amazed something that was created that 2 years ago is still relevant to understand some react concept that we seldom used.

  • @simonnjengaa
    @simonnjengaa 4 ปีที่แล้ว

    Thank you so much, Kyle, am learning react and popups has been difficult for me to implement, you have really simplified this for me.

  • @NeoDragonEWW
    @NeoDragonEWW 4 ปีที่แล้ว +4

    I love practical tutorials and creating a modal is so common in real apps. I've never used portals before, so I loved this. Thanks for this video, Kyle. :)

  • @luklukas6194
    @luklukas6194 3 ปีที่แล้ว +1

    Awesome, easy to follow Video! As I am following along, I find my overlay working properly without having build the portal yet. Did something in React change as of the day this Video was created? Thank you!

  • @alexwall7204
    @alexwall7204 4 ปีที่แล้ว +1

    An incredibly high-quality and helpful tutorial, thank you!

  • @sskdev5116
    @sskdev5116 4 ปีที่แล้ว +1

    Oh my God!!! This solved a issue I was having and simply gave up. Thank you!!!!!

  • @Aj-po9dc
    @Aj-po9dc 2 ปีที่แล้ว

    Man... I was just watching a video....... For like 23 minutes and 13 seconds, watching this other guy's video, on the same topic. The video was like 40 minutes long and I didn't even learn half of what you taught here in 12 minutes here!
    I love your vids man, I'm definitely going to be checking out your course!

  • @cristianouzumaki2455
    @cristianouzumaki2455 4 ปีที่แล้ว +1

    I am concerned that if this guy's courses become famous, we are not going to get awesome vids like these. I learn so much each time your vids come out. I have already recommended this Channel to so many guys.

  • @mtsurov
    @mtsurov ปีที่แล้ว

    Just what I needed. Thank you Kyle.

  • @ambinintsoahasina
    @ambinintsoahasina 4 ปีที่แล้ว

    I don't know what kind of mind-reading technique you're using but I just wondered about a better way to handle my modals in React (cause I really messed up a project)
    I did a research just now, and saw your video.... and found out it was just uploaded like today!! thank you though

  • @farhadinho9
    @farhadinho9 4 ปีที่แล้ว

    So much more simple than I thought. Thanks!

  • @willmakk
    @willmakk 4 ปีที่แล้ว +1

    Incredibly underrated feature, extremely powerful.

  • @bobnem2839
    @bobnem2839 3 ปีที่แล้ว

    This elegant approach work with my nextjs project too! Thank you.

  • @mohamedcherif7638
    @mohamedcherif7638 ปีที่แล้ว

    well explained and quick boost. thank you so much Kyle.

  • @jimbojones8713
    @jimbojones8713 3 ปีที่แล้ว +3

    Hey Kyle, thanks for the video! Is there an issue with just putting the Modal as the last component in App, so its on top of all other elements (such as "other content" in this video), and then not using z-index or the portal?

  • @MartinPerez-mi1ty
    @MartinPerez-mi1ty 4 ปีที่แล้ว

    Thanks for constantly sharing your knowledge

  • @kuei-chinhuang815
    @kuei-chinhuang815 4 ปีที่แล้ว +1

    Kyle, you're a life-saver!! Thank you for the awesome contents!!

  • @AfraAmaya
    @AfraAmaya ปีที่แล้ว +1

    Thank you so much for this amazing content ! Your knowledge is saving me so much time and effort !

  • @qcmira2024
    @qcmira2024 4 ปีที่แล้ว

    OMG thanks so much, I've been searching for days a way to solve this !!! Thanks a lot !!!

  • @shaunpx1
    @shaunpx1 2 ปีที่แล้ว

    Great info, I'd really like to know what camera you use for your videos, su h good quality 👌

  • @geralt36
    @geralt36 4 ปีที่แล้ว

    Holy smokes! I've been wanting to make something like this without using a library for a long time but haven't really had a clue on how I would go about doing it and now I know thanks to you! :)

    • @douggale5962
      @douggale5962 2 ปีที่แล้ว

      It is a noble cause to avoid libraries. You will be very powerful someday.

  • @surajitdas94
    @surajitdas94 4 ปีที่แล้ว

    Very nice and clear explanation. ❤️

  • @fearzyn
    @fearzyn ปีที่แล้ว

    THANK YOU I HAD NO IDEA ABOUT THIS

  • @vaibhavsomani2687
    @vaibhavsomani2687 8 หลายเดือนก่อน

    How come you always have something new to teach? I searched "best way to create a model?", and landed here from Reddit!

  • @pedrokielma
    @pedrokielma 2 ปีที่แล้ว

    genius, thank you, saved my life!

  • @promus2
    @promus2 2 ปีที่แล้ว

    Awesome content my friend. Regards from Brazil

  • @hiteshsuthar1097
    @hiteshsuthar1097 3 ปีที่แล้ว +1

    No stack to Full stack ❤️🔥

  • @adr1m
    @adr1m 3 ปีที่แล้ว

    Great as always! Could you please make a short video on how to make a Modal using ReactRouter 6? Thank You!

  • @xk2102
    @xk2102 2 ปีที่แล้ว

    Great explanation Kyle, thank you!

  • @robertminardi4268
    @robertminardi4268 2 ปีที่แล้ว

    Yet another great topic and amazing video. I added this functionality to my new website as soon as I finished the video. It would be great if you could expand this and add something like viewing a PDF with react-pdf-viewer. Have a portal modal open the viewer and display a pdf. That's a totally random idea and doesn't apply directly to the functionality I'm adding....I swear. :)

  • @govinda399
    @govinda399 2 ปีที่แล้ว

    I like your video before I watch it. The reason is quality content.

  • @fadfooood
    @fadfooood 4 ปีที่แล้ว

    Helpful and just on time as always.

  • @9dwd
    @9dwd 2 ปีที่แล้ว

    Thanks so much man
    You solve my day

  • @Technicalstockmarket12
    @Technicalstockmarket12 ปีที่แล้ว

    Explained really well 👍

  • @subarashii__
    @subarashii__ 2 ปีที่แล้ว

    beautifully explained

  • @masoudmohajeri6644
    @masoudmohajeri6644 3 ปีที่แล้ว

    You are awesome Kyle 😍 Tanks for all your PERFECT tutorials 😙😉

  • @huseynfy
    @huseynfy 2 ปีที่แล้ว

    Thank you so much for the great explanation!

  • @pranupranav6279
    @pranupranav6279 2 ปีที่แล้ว +1

    Thanks

  • @marios4604
    @marios4604 2 ปีที่แล้ว

    Thank you Kyle!

  • @stanislavmalyshev5209
    @stanislavmalyshev5209 3 ปีที่แล้ว

    Good tutorial. I'm didn't know yet what portals exist in another root div

  • @MaddyChessVision
    @MaddyChessVision 4 ปีที่แล้ว

    Great work boy! Really appreciate your work.

  • @santespro
    @santespro 4 ปีที่แล้ว

    This was really helpful!
    Could you also make a video on how Redux works with React and how to properly use it, cause it looks confusing

  • @ナーシサス次元から来た人-d8u
    @ナーシサス次元から来た人-d8u 3 ปีที่แล้ว

    This is what I've been looking for!

  • @johnacsyen
    @johnacsyen 4 ปีที่แล้ว

    Thanks. Learned something new today.

  • @kokodev3719
    @kokodev3719 2 ปีที่แล้ว

    I would love to take your react course. Has it been updated to React 18?

  • @chris94kennedy
    @chris94kennedy 4 ปีที่แล้ว +1

    Hi Kyle, please can you explain why this trend for creating style objects and using inline style properties in the JSX has appeared? Is it for performance, like no need to load stylesheets? or what? because to me it looks cluttered when you could just import a stylesheet and define in there. thanks :)

  • @gerryramosftw
    @gerryramosftw 4 ปีที่แล้ว

    awesome video! thank you for making this so clear and concise, I've subscribed and looking forward to more of your content

  • @ZubairAhmed1024
    @ZubairAhmed1024 3 ปีที่แล้ว

    Do you reckon it is a good idea to use portal as a authguard or login page?

  • @Sway55
    @Sway55 หลายเดือนก่อน

    thanks Kyle

  • @kubaw2882
    @kubaw2882 4 ปีที่แล้ว

    Thank you very much for very good explanation. I really appreciate this content!

  • @teufelsborg176
    @teufelsborg176 3 ปีที่แล้ว

    Thanks for this dude. Shit was driving me nuts. Now I feel like I can make modals anywhere/everywhere.

  • @devilstrela
    @devilstrela 4 ปีที่แล้ว

    i love this channel man, learned me so much... but did you ever made video about files structure, abrastaction of code etc. of react for example?? If not, do you consider it?? because I am watching you for about 6 months, learned me so much, I can create a fully working apps at fast rate, but I was told at interview that my code is such a mess.. And I am trying really hard to make it as not messy as posibble, so maybe there is some rules and practices I dont know about ..

  • @aliezadkhaha9439
    @aliezadkhaha9439 4 ปีที่แล้ว +1

    nice tutorial, thank you

  • @ridl27
    @ridl27 4 ปีที่แล้ว

    ty Kyle.

  • @snoudoubts1745
    @snoudoubts1745 3 ปีที่แล้ว

    Thanks for the video!
    Question: Can the modal be moved outside of the window? (ie., can it be dragged to the other screen?)

  • @davidho1258
    @davidho1258 4 ปีที่แล้ว

    instead of putting null you can put the button there and put useState along with the modal component.

  • @ManojKumar-bu1of
    @ManojKumar-bu1of 2 ปีที่แล้ว

    Hey bro,
    I've experience on React and Node and I want to become Blockchain developer,
    could you please guide me with the roadmap and best recourse?

  • @ernestomotta5178
    @ernestomotta5178 4 ปีที่แล้ว

    Dude, you are awesome, thank you for the explanation

  • @KaguraDun
    @KaguraDun 2 ปีที่แล้ว

    Awesome tutorial

  • @uness4511
    @uness4511 4 ปีที่แล้ว +1

    Plz could You make a video of creating responsive navigation bar in react ? Thanks in advance.

  • @MichaelCampbell01
    @MichaelCampbell01 4 ปีที่แล้ว +9

    Didn't know anything about portals before today; like I didn't even know they existed.

  • @briandesign
    @briandesign 4 ปีที่แล้ว +1

    this is really cool!

  • @maheshmurugan5527
    @maheshmurugan5527 3 ปีที่แล้ว

    I have one doubt please reply me ...web dev simplified .. can i use react portals for sign in or sign up form

  • @dean6046
    @dean6046 4 ปีที่แล้ว

    Thank you Kyle the Robot guy!

  • @juliantomasvergaracifuente9627
    @juliantomasvergaracifuente9627 2 ปีที่แล้ว

    que forma tan facil y agradable de explicar !!!

  • @samandarboymurodov8941
    @samandarboymurodov8941 2 ปีที่แล้ว

    Thank you for nice tutorial!

  • @faiyazrafeek2628
    @faiyazrafeek2628 3 ปีที่แล้ว

    Thank you man

  • @sourav6645
    @sourav6645 4 ปีที่แล้ว

    you really look like a Hollywood star. Btw this one was a lifesaver Thanksssss!!!!!

  •  4 ปีที่แล้ว

    Thank you so much Kyle!

  • @rajesh-royal
    @rajesh-royal 4 ปีที่แล้ว

    you pure gold ❤️ please make a simplified video on redux

  • @lelyalelyalelya
    @lelyalelyalelya 3 ปีที่แล้ว

    Thank you!

  • @thanishnatarajan5382
    @thanishnatarajan5382 2 ปีที่แล้ว

    Thanks man!

  • @marianagrnk
    @marianagrnk 2 ปีที่แล้ว

    OMG Thank you, I could finally understand! you're THE BEST

  • @Marjolein_1979
    @Marjolein_1979 3 หลายเดือนก่อน

    Awesome. Very helpful!

  • @mattmarkus4868
    @mattmarkus4868 4 ปีที่แล้ว

    Hey, I really, really like your style and I can tell by your code that you are solid. And I found you at just the right time. I need to learn React for my job and I’m overwhelmed by the sheer number of React courses (really, there are too many options that deciding on one is almost impossible). Do you go over hooks in your course? Our project is being done in functional components, hooks, and in Typescript and martial-ui. A lot to have to learn from scratch and it’s overwhelming quite frankly. Also, do you go over webpack or no?
    One thing I’m curious about is do enterprises actually use create react app or do they start from scratch and add things as needed? My gut tells me we should start from scratch but it’s hard to know based on my lack of experience in this tech. Plus I don’t think my boss will want to invest the time to start from scratch unless I have a specific reason. Do you teach all from scratch?

    • @nsharma4981
      @nsharma4981 4 ปีที่แล้ว

      I haven't taken Kyle's course myself, but I do know that it is entirely based on hooks

    • @WebDevSimplified
      @WebDevSimplified  4 ปีที่แล้ว

      It is based on hooks. I do not cover webpack in the course but in enterprise work you won't really need to mess with webpacj much and if you do you then can learn it as needed. You never need to be a webpack expert.

    • @mattmarkus4868
      @mattmarkus4868 4 ปีที่แล้ว

      ​@@WebDevSimplified Hey thanks for responding so quickly. I went ahead and bought it and I like the pace so far. Very concise and to the point. However, I had no idea using it with TypeScript would be sooo different. I'm struggling to do the most basic things because I don't know what types the compiler expects for common things like elements or events or props or state etc. It's frustrating because in JS it just works, but in TS it's very disciplined and...well... like a statically typed language! I just need to find some documentation on the list of types you'd normally use to make the compiler and linter happy. eslint and the compiler are constantly giving me negative feedback. Could be good or bad, I don't know. This is a totally different world, though, I can say that. I feel like once I wrap my head around it it'll be good.

    • @gregduncan5993
      @gregduncan5993 4 ปีที่แล้ว +1

      Just learn react - you can spend loads of time debugging your webpack - once you've got a handle on react you'll understand better if you situation requires you to know webpack. I wasted so much time on learning the ever changing and evolving webpack - I really wish I had focused on react