Learn React Portal In 12 Minutes By Building A Modal

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ก.พ. 2025

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

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

    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 ปีที่แล้ว +26

      ​@@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 ปีที่แล้ว +3

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

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

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

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

      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

  • @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.

  • @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 ❤️

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

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

  • @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

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

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

  • @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

  • @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

  • @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

  • @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 🙏

  • @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.

  • @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

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

    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!

  • @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

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

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

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

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

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

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

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

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

  • @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. :)

  • @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.

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

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

  • @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.

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

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

  • @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.

  • @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!

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

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

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

    Short, and to the point. Great tutorial.

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

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

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

    Incredibly underrated feature, extremely powerful.

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

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

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

    So much more simple than I thought. Thanks!

  • @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.

  • @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

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

    Awesome content my friend. Regards from Brazil

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

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

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

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

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

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

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

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

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

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

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

    Just what I needed. Thank you Kyle.

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

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

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

    Best explanation on React Portals

  • @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

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

    genius, thank you, saved my life!

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

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

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

    Thanks for constantly sharing your knowledge

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

    Very nice and clear explanation. ❤️

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

    Explained really well 👍

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

    THANK YOU I HAD NO IDEA ABOUT THIS

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

    No stack to Full stack ❤️🔥

  • @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

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

    Thanks so much man
    You solve my day

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

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

  • @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!

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

    Great explanation Kyle, thank you!

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

    Thank you so much for the great explanation!

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

    beautifully explained

  • @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. :)

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

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

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

    Thanks. Learned something new today.

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

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

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

    This is what I've been looking for!

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

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

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

    Helpful and just on time as always.

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

    Great work boy! Really appreciate your work.

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

    Thank you Kyle!

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

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

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

    Thank you for nice tutorial!

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

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

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

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

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

    Thanks

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

    Awesome tutorial

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

    nice tutorial, thank you

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

    Great tutorial, TY. Keep up the good work pal :)

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

    Awesome. Very helpful!

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

    Amazing tutorial :)

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

    Dude, you are awesome, thank you for the explanation

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

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

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

    Thanks a lot 🙂

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

    Thank you!

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

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

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

    que forma tan facil y agradable de explicar !!!

  • @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

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

    Thank you Kyle the Robot guy!

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

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

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

    Thank you so much!

  • @ИванФеоктистов-ь4э
    @ИванФеоктистов-ь4э 4 ปีที่แล้ว

    Thanks for all cool videos, man!

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

    thanks Kyle

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

    Thank you man

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

    Always love your content man 👍🏾

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

    You're the best, thank you.

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

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

  •  4 ปีที่แล้ว

    Thank you so much Kyle!

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

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

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

    Thanks man!

  • @curiositycrateyt
    @curiositycrateyt 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?

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

    Muchas gracias.. genial el contenido que haces... fácil y sencillo!!!

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

    ty Kyle.