Everything about React Portals in 10 minutes

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 พ.ย. 2024
  • In this video you will learn how to use React Portals to create amazing modals in your React App. You will also learn the advantages of React Portals and when and why to use them. You will also learn topics like event delegation and event bubbling.
    📚 Materials/References:
    VS Code Extensions: • 5 Must Have Visual Stu...
    Create react app: reactjs.org/do...
    React Portals Docs: reactjs.org/do...
    GitHub Code for the project: github.com/Ful...
    🧠 Concepts Covered:
    React Portals
    Event Delegation
    Event Bubbling
    Creating Modal with Portals
    🌎 Find Me Here:
    My Website: prasoon.me
    LinkedIn: / prosoon-goswami
    Twitter: / prasoongoswami4
    GitHub: github.com/Ful...
    Instagram: / prasoon_goswami

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

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

    Learnt new thing today.

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

    I had to come out here from a well known udemy course.... your explanations was amazing

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

    Keep posting informative video.

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

    Good work again. Keep posting 🙂

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

    Great explanation🤗🤗

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

    Well explained 👍

  • @habibulislam3386
    @habibulislam3386 11 หลายเดือนก่อน +1

    great explaination..

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

    React Portals, beautifully explained. Thanks.
    {2023-07-24}

  • @KAMIL-jc8nn
    @KAMIL-jc8nn ปีที่แล้ว +1

    Great tutorial

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

    Thankyou for sharing your knowledge🤝

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

    Well explained

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

    Thank you, Bro! Very helpfull!

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

    Very well explained

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

    Good content. Keep up🙂

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

    I noticed you had modal : 100% can you not use vh vw?
    I've used modals in react without portal.

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

      Absolutely you can use modal without portal. But at times you have situations where you don’t want to render a modal deep inside a nested dom but also want to keep the parent child relationship intact. In these cases portal seems to be much handy.
      More over you always want your modal to be above all the contents. Using css will just make it visible at the top but eventually your modal will be nested deep inside decreasing the accessibility of your website.

  • @_its-vikash
    @_its-vikash ปีที่แล้ว

    position : fixed

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

      Position fixed would add the modal to the under the same patent which we do not want portal doesn't only gives us styling options but also provides us the way to render elements out side the nested dom tree.