Build a POPUP component in React JS ~ A Beginner Tutorial with React Hooks!

Поделиться
HTML-код
  • Опубликовано: 11 янв 2021
  • Learn how to build a popup component for React JS by using React Hooks and functional components. We build a timed popup that opens after an option amount of time and we create a button triggered popup as well using the same component.
    // JOIN MY DISCORD
    / discord
    // Support me on Ko-Fi
    ko-fi.com/tylerpotts
    // FOLLOW ME ON TWITTER
    / tyler_potts_
    // BECOME A MEMBER
    ruclips.net/user/tylerpottsjoin
    // MY GEAR FOR CODING AND RUclips
    Blue Yeti Microphone: amzn.to/3jr3l7T
    Microphone Stand: amzn.to/35B9LMN
    Chair: amzn.to/3dWds3F
    Thunderbolt Dock: amzn.to/3osBF6u
    Monitor: amzn.to/37I8KoR
    All of these products I own and have tested!
    // INTERESTED IN GAME DEV?
    Game development channel: / muddywolf
    // CHECK OUT MY GAME
    play.google.com/store/apps/de...
    // DO THESE SIMPLE STEPS
    LIKE, SUBSCRIBE & SHARE

Комментарии • 113

  • @RajPhotoEditingMuchMore
    @RajPhotoEditingMuchMore 3 года назад +15

    Really amazing, along with popups, learnt many new things also. Thanks 😊😊🙏

    • @TylerPotts
      @TylerPotts  3 года назад +1

      Glad to hear that 🙌

  • @muhammadalirasheed8894
    @muhammadalirasheed8894 2 года назад +3

    Bloody Hell mannnnn that's the best tutorial I have ever seen I was tired of using the react-modal thanks for the tutorial.

  • @gabrielmoraes4516
    @gabrielmoraes4516 Год назад

    Awesome video! Super well explained! thank you!

  • @emmamachi7822
    @emmamachi7822 Год назад +1

    Tyler, you are amazing! I'm going to binge your videos to learn more about web-design! I love you!

    • @TylerPotts
      @TylerPotts  Год назад +1

      Haha! I'm happy you like them! I hope you find them useful, Emma! :D

  • @piyushlohiya1977
    @piyushlohiya1977 2 года назад +1

    I was searching for this and you made this so simple😍

  • @futureverse9347
    @futureverse9347 Год назад

    Very helpful and easy to follow!

  • @mosesegboh
    @mosesegboh 2 года назад +4

    Lovely video, very clear and well explained.

    • @TylerPotts
      @TylerPotts  2 года назад

      I'm glad you enjoyed it!

  • @PandeyjiVlog582
    @PandeyjiVlog582 Год назад +2

    i learned something today thanks to you dude i love it

  • @shubhikaagrawal7888
    @shubhikaagrawal7888 2 года назад

    Worked for me. Thank you for the help.

  • @BernRezz
    @BernRezz 10 месяцев назад

    what a wonderfull video man, and youre so didactic, i learned a lot from this video, thanks and keep the awesome work!

  • @ritualj0int
    @ritualj0int 2 года назад +1

    Woaw Tyler, that amazing work! Well done, helped me a shiton!

  • @user-uk9vj3ou4s
    @user-uk9vj3ou4s 8 месяцев назад

    thx too much for this video. I didn’t know that you can pass a set function in props to another component, this is very cool!

  • @tunayuzbayyelce3455
    @tunayuzbayyelce3455 Год назад

    Thanks for this video. It helped me a lot.

  • @ghaziabbas3087
    @ghaziabbas3087 3 года назад +1

    Yaayyy! More react! ❤️❤️

  • @filipesilva1584
    @filipesilva1584 Год назад

    amazing. helped me a lot!

  • @ying7124
    @ying7124 Год назад +1

    Bro you are my secret teacher now. You deserve the subscribe sir.

  • @dweebycat9929
    @dweebycat9929 Год назад

    Thank you so much for this!!

  • @RafaelLima-jg3pm
    @RafaelLima-jg3pm Год назад

    Amazing, helped me a lot.

  • @skymedia120
    @skymedia120 2 года назад +1

    Thanks dude for your understandable and easy tutorial

  • @zechico2494
    @zechico2494 Год назад

    Thanks for great content!

  • @umarkhan_khan
    @umarkhan_khan 3 года назад +1

    clean and simple lovet it

  • @rangabharath4253
    @rangabharath4253 3 года назад +1

    Awesome as always 👍😀

  • @jacksonsanti
    @jacksonsanti 2 года назад +1

    Hey Bro, I'm beginer with React Js and u help me a lot with your video. U are the best !!! 👏🏻👏🏻👏🏻

  • @victorga74
    @victorga74 3 месяца назад

    Excellent,
    Thanks for share it

  • @yacineguena9238
    @yacineguena9238 2 года назад

    Thank you very much your video was really helpful

  • @clareivers
    @clareivers 2 года назад +1

    Thanks so much, this is awesome!

  • @cody_code
    @cody_code 2 года назад +1

    great work on this! got a new subscriber

  • @MrAndykofi
    @MrAndykofi 3 года назад

    Nice one, thank you.

  • @ol1175
    @ol1175 3 года назад +1

    Just AWESOME!!!

  • @santiso878
    @santiso878 Год назад +1

    it helped me a lot! thanks

  • @sanjarabakirov7116
    @sanjarabakirov7116 11 месяцев назад

    Of course, it works. Thanks a lot.

  • @ashandimantha6538
    @ashandimantha6538 Месяц назад +1

    Thank you so much !!

  • @weslolo1074
    @weslolo1074 2 года назад

    Thank you!

  • @pedrodiasesquerdo48
    @pedrodiasesquerdo48 2 года назад

    Excelent, thank you.

  • @upanisad
    @upanisad Год назад

    Thanks!

  • @alexstaresson9517
    @alexstaresson9517 3 года назад +1

    cool stuff

  • @InverserPro
    @InverserPro 2 года назад

    Thank U, bro!

  • @asilbekegamberdiyev1558
    @asilbekegamberdiyev1558 Год назад +1

    very useful informations thanks

  • @Amyfers
    @Amyfers Год назад

    Thanks for the tutorial! ☺
    Anyone out there trying this out in a .tsx file and getting a compile error "return type 'Element | ""' is not a valid JSX element", just make it a .js file instead

  • @masruralam6199
    @masruralam6199 Год назад

    thanks for nice explanation, which theme are you using

  • @abdulraheemelsadig9297
    @abdulraheemelsadig9297 2 года назад +1

    refresh refresh refresh 😂. you have got a new subscriber thanks for the tutorial

  • @Crychimou
    @Crychimou 3 года назад +3

    How can we do if we just want to just dismiss the popup by clicking outside of it and not on the "close" button please ? Great content by the way !

  • @flavioherrera3792
    @flavioherrera3792 2 года назад

    amazing video

  • @carlafaes9282
    @carlafaes9282 2 года назад +1

    Estaria bueno que hicieras uno en el que se pudiera agregar el setTimeout y el boton en el mismo popup y no en dos diferentes.

  • @Abdulbaasit_abdulmatin2008
    @Abdulbaasit_abdulmatin2008 24 дня назад +1

    THANKS A LOT

  • @qarinet6059
    @qarinet6059 3 года назад +1

    Awesome 👌 nice work continue 👏
    What's the name of VS Code theme?

  • @Umavenugopal
    @Umavenugopal 2 года назад +1

    you rock! Please make a video on animations too

  • @beaker8111
    @beaker8111 Год назад

    This is easy. I'd like a tutorial on how to make a reusable component with dynamically changing data in the popup.

  • @elyeszarrad1504
    @elyeszarrad1504 2 года назад

    good video

  • @eduardoranierosilva
    @eduardoranierosilva 2 года назад +1

    I not even watched the whole video and got the answer i was looking for. Sometimes we just need to step out from the code for just a second. Either way i gave it a like for the video. Thanks man

    • @TylerPotts
      @TylerPotts  2 года назад

      Thank you!! Glad you found what you was looking for :D

  • @PerfectCodeAcademy
    @PerfectCodeAcademy 2 года назад

    what theme are you using in your vscode bro?

  • @nickhillmann2773
    @nickhillmann2773 Год назад +1

    Perfect video 5/5

  • @theodorbursumac889
    @theodorbursumac889 Год назад

    super :)

  • @backtic_education
    @backtic_education Год назад +1

    1000000000 thanks

  • @moshoodsanusi6246
    @moshoodsanusi6246 Год назад +2

    i am currently following this tutorial now, but my setTrigger function is not working. I don't know where the problem is coming from. kindly help

  • @bold_breakdowns
    @bold_breakdowns Год назад

    i want a popup with multiple buttons and different content but don't like the look of what i have here, can you help?

  • @philong844
    @philong844 Год назад

    can you explain for me where is the ''trigger'', thanks you for answer me!

  • @I3uzzzzzz
    @I3uzzzzzz 2 года назад

    thank you. how would you pass a variable into the popup window? i want to display the full image like In Instagram when you click it.

    • @TylerPotts
      @TylerPotts  2 года назад

      I would use a custom state/prop to pass it through with the data you need

  • @Ninjajitsu562
    @Ninjajitsu562 Год назад

    hod do i position it within a certain conytainer

  • @gowthamibathula6247
    @gowthamibathula6247 Год назад

    Can you make a video on tour guide tooltip.. Please

  • @3VishalSingh
    @3VishalSingh 2 года назад

    this is library for popup...cause this ain't working for while name is changed.... I am using two popup in same page but the 2nd popup using in new file isn't working fine(not able to import in working file) please reply??

  • @yamillayicov7345
    @yamillayicov7345 Год назад

    What's theme WSCode?

  • @mr.RAND5584
    @mr.RAND5584 Год назад

    ang husay po (tagalog).

  • @user-yn7yi6ef9v
    @user-yn7yi6ef9v 5 месяцев назад

    which theme is it ?

  • @kritikasharma2127
    @kritikasharma2127 2 года назад

    Nycc

  • @anishachoudhury3905
    @anishachoudhury3905 Год назад

    Hi, so I have a progress bar and when i click on it it should give me a pop up. Can anyone help?

  • @purpleplantain374
    @purpleplantain374 2 года назад +5

    I followed the tutorial, but the close button is not working. It may be important to mention that “props” is never italicized for me.
    Edit: nevermind, I forgot the setTrigger part in App.js

  • @NBA6Fan
    @NBA6Fan 3 года назад

    4:00 Hahaha if this is not global first approach to fixing any error in frontend... :D

  • @Tahnddaay
    @Tahnddaay Год назад

    your english communicate is very easy to hear, especially not good english likes me, i wonder do u have any course about front end by your teach ?, i'm from Viet Nam

  • @nikhilyadav527
    @nikhilyadav527 Год назад

    my close button doesnt work
    please help

  • @leodragonheart754
    @leodragonheart754 3 года назад

    How do you make it responsive?

    • @mosesegboh
      @mosesegboh 2 года назад

      just style the popup and popup inner component using css

  • @WillKristiansen
    @WillKristiansen 2 года назад

    I keep getting an error saying props.setTrigger is not a function. Can you help?

    • @masonminnicks6338
      @masonminnicks6338 2 года назад

      I'm getting the same thing, were you ever able to figure this out?

    • @masonminnicks6338
      @masonminnicks6338 2 года назад +2

      nvm lol I got it, it was because I forgot to add setTrigger={setButtonPopup} to the Tag

  • @DariuszMakowski
    @DariuszMakowski Год назад

    wheres git with source?

  • @daddy.69.
    @daddy.69. 2 года назад +1

  • @KoreanBronzeIV
    @KoreanBronzeIV 3 года назад +1

    Tyler do you know these bots in the comments?

  • @davidholden6293
    @davidholden6293 Год назад

    where is the code bro?

  • @andresaguilar4409
    @andresaguilar4409 2 года назад +1

    ok

  • @gunnardeangelo7384
    @gunnardeangelo7384 3 года назад

    So Nice 💘💘💘💘💘💘

  • @ricobuttonpusher7061
    @ricobuttonpusher7061 2 года назад

    It doesnt work anymore.

  • @alidante5648
    @alidante5648 3 года назад

    Need lovely 😍💋 💝💖❤️

  • @laniakea1541
    @laniakea1541 2 года назад +1

    Someone who makes a react tutorial but cannot put the link to the code in the description does not deserve a like

  • @erickfiorek8455
    @erickfiorek8455 3 года назад +1

    I'm single 😥😥😥😥😥

  • @jacsdev
    @jacsdev Год назад

    Great

  • @utkumattaktas7994
    @utkumattaktas7994 Год назад +1

    Thank you!