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

  Рет қаралды 183,548

Tyler Potts

Tyler Potts

3 жыл бұрын

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
kzbin.infojoin
// MY GEAR FOR CODING AND KZbin
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 жыл бұрын
Really amazing, along with popups, learnt many new things also. Thanks 😊😊🙏
@TylerPotts
@TylerPotts 3 жыл бұрын
Glad to hear that 🙌
@muhammadalirasheed8894
@muhammadalirasheed8894 2 жыл бұрын
Bloody Hell mannnnn that's the best tutorial I have ever seen I was tired of using the react-modal thanks for the tutorial.
@emmamachi7822
@emmamachi7822 Жыл бұрын
Tyler, you are amazing! I'm going to binge your videos to learn more about web-design! I love you!
@TylerPotts
@TylerPotts Жыл бұрын
Haha! I'm happy you like them! I hope you find them useful, Emma! :D
@gabrielmoraes4516
@gabrielmoraes4516 Жыл бұрын
Awesome video! Super well explained! thank you!
@user-uk9vj3ou4s
@user-uk9vj3ou4s 9 ай бұрын
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!
@futureverse9347
@futureverse9347 Жыл бұрын
Very helpful and easy to follow!
@PandeyjiVlog582
@PandeyjiVlog582 Жыл бұрын
i learned something today thanks to you dude i love it
@piyushlohiya1977
@piyushlohiya1977 2 жыл бұрын
I was searching for this and you made this so simple😍
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad I could help!
@shubhikaagrawal7888
@shubhikaagrawal7888 2 жыл бұрын
Worked for me. Thank you for the help.
@BernRezz
@BernRezz 11 ай бұрын
what a wonderfull video man, and youre so didactic, i learned a lot from this video, thanks and keep the awesome work!
@ghaziabbas3087
@ghaziabbas3087 3 жыл бұрын
Yaayyy! More react! ❤️❤️
@ritualj0int
@ritualj0int 2 жыл бұрын
Woaw Tyler, that amazing work! Well done, helped me a shiton!
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad to hear it!
@mosesegboh
@mosesegboh 2 жыл бұрын
Lovely video, very clear and well explained.
@TylerPotts
@TylerPotts 2 жыл бұрын
I'm glad you enjoyed it!
@RafaelLima-jg3pm
@RafaelLima-jg3pm Жыл бұрын
Amazing, helped me a lot.
@ying7124
@ying7124 Жыл бұрын
Bro you are my secret teacher now. You deserve the subscribe sir.
@filipesilva1584
@filipesilva1584 2 жыл бұрын
amazing. helped me a lot!
@dweebycat9929
@dweebycat9929 Жыл бұрын
Thank you so much for this!!
@tunayuzbayyelce3455
@tunayuzbayyelce3455 Жыл бұрын
Thanks for this video. It helped me a lot.
@umarkhan_khan
@umarkhan_khan 3 жыл бұрын
clean and simple lovet it
@zechico2494
@zechico2494 2 жыл бұрын
Thanks for great content!
@victorga74
@victorga74 5 ай бұрын
Excellent, Thanks for share it
@storyPlus12
@storyPlus12 2 жыл бұрын
Thanks dude for your understandable and easy tutorial
@TylerPotts
@TylerPotts 2 жыл бұрын
Happy to help
@jacksonsanti
@jacksonsanti 2 жыл бұрын
Hey Bro, I'm beginer with React Js and u help me a lot with your video. U are the best !!! 👏🏻👏🏻👏🏻
@TylerPotts
@TylerPotts 2 жыл бұрын
Happy to hear that!
@MrAndykofi
@MrAndykofi 3 жыл бұрын
Nice one, thank you.
@sanjarabakirov7116
@sanjarabakirov7116 Жыл бұрын
Of course, it works. Thanks a lot.
@rangabharath4253
@rangabharath4253 3 жыл бұрын
Awesome as always 👍😀
@TylerPotts
@TylerPotts 3 жыл бұрын
Thanks again! haha xD
@yacineguena9238
@yacineguena9238 2 жыл бұрын
Thank you very much your video was really helpful
@clareivers
@clareivers 2 жыл бұрын
Thanks so much, this is awesome!
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad you like it!
@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
@ol1175
@ol1175 3 жыл бұрын
Just AWESOME!!!
@TylerPotts
@TylerPotts 3 жыл бұрын
Thanks
@pedrodiasesquerdo48
@pedrodiasesquerdo48 3 жыл бұрын
Excelent, thank you.
@upanisad
@upanisad Жыл бұрын
Thanks!
@cody_code
@cody_code 2 жыл бұрын
great work on this! got a new subscriber
@TylerPotts
@TylerPotts 2 жыл бұрын
Awesome, thank you!
@ashandimantha6538
@ashandimantha6538 2 ай бұрын
Thank you so much !!
@TylerPotts
@TylerPotts 2 ай бұрын
You're welcome!
@santiso878
@santiso878 2 жыл бұрын
it helped me a lot! thanks
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad it helped!
@weslolo1074
@weslolo1074 2 жыл бұрын
Thank you!
@InverserPro
@InverserPro 2 жыл бұрын
Thank U, bro!
@alexstaresson9517
@alexstaresson9517 3 жыл бұрын
cool stuff
@asilbekegamberdiyev1558
@asilbekegamberdiyev1558 Жыл бұрын
very useful informations thanks
@TylerPotts
@TylerPotts Жыл бұрын
Glad it was helpful!
@abdulraheemelsadig9297
@abdulraheemelsadig9297 2 жыл бұрын
refresh refresh refresh 😂. you have got a new subscriber thanks for the tutorial
@TylerPotts
@TylerPotts 2 жыл бұрын
Awesome, thank you!
@Abdulbaasit_abdulmatin2008
@Abdulbaasit_abdulmatin2008 Ай бұрын
THANKS A LOT
@TylerPotts
@TylerPotts Ай бұрын
You're welcome!
@carlafaes9282
@carlafaes9282 2 жыл бұрын
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.
@HackerFlavio
@HackerFlavio 2 жыл бұрын
amazing video
@TylerPotts
@TylerPotts 2 жыл бұрын
Glad you think so!
@Crychimou
@Crychimou 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 !
@beaker8111
@beaker8111 Жыл бұрын
This is easy. I'd like a tutorial on how to make a reusable component with dynamically changing data in the popup.
@Umavenugopal
@Umavenugopal 2 жыл бұрын
you rock! Please make a video on animations too
@TylerPotts
@TylerPotts 2 жыл бұрын
Thanks for the idea!
@masruralam6199
@masruralam6199 Жыл бұрын
thanks for nice explanation, which theme are you using
@theodorbursumac889
@theodorbursumac889 Жыл бұрын
super :)
@TylerPotts
@TylerPotts Жыл бұрын
Super!
@backtic_education
@backtic_education Жыл бұрын
1000000000 thanks
@elyeszarrad1504
@elyeszarrad1504 2 жыл бұрын
good video
@qarinet6059
@qarinet6059 3 жыл бұрын
Awesome 👌 nice work continue 👏 What's the name of VS Code theme?
@nickhillmann2773
@nickhillmann2773 Жыл бұрын
Perfect video 5/5
@TylerPotts
@TylerPotts Жыл бұрын
Thank you
@moshoodsanusi6246
@moshoodsanusi6246 Жыл бұрын
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
@PerfectCodeAcademy
@PerfectCodeAcademy 2 жыл бұрын
what theme are you using in your vscode bro?
@Ninjajitsu562
@Ninjajitsu562 Жыл бұрын
hod do i position it within a certain conytainer
@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
@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?
@eduardoranierosilva
@eduardoranierosilva 2 жыл бұрын
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
@philong844
@philong844 Жыл бұрын
can you explain for me where is the ''trigger'', thanks you for answer me!
@gowthamibathula6247
@gowthamibathula6247 Жыл бұрын
Can you make a video on tour guide tooltip.. Please
@user-yn7yi6ef9v
@user-yn7yi6ef9v 6 ай бұрын
which theme is it ?
@yamillayicov7345
@yamillayicov7345 Жыл бұрын
What's theme WSCode?
@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??
@anishachoudhury_
@anishachoudhury_ Жыл бұрын
Hi, so I have a progress bar and when i click on it it should give me a pop up. Can anyone help?
@kritikasharma2127
@kritikasharma2127 2 жыл бұрын
Nycc
@mr.RAND5584
@mr.RAND5584 Жыл бұрын
ang husay po (tagalog).
@purpleplantain374
@purpleplantain374 2 жыл бұрын
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
@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 жыл бұрын
nvm lol I got it, it was because I forgot to add setTrigger={setButtonPopup} to the Tag
@leodragonheart754
@leodragonheart754 3 жыл бұрын
How do you make it responsive?
@mosesegboh
@mosesegboh 2 жыл бұрын
just style the popup and popup inner component using css
@nikhilyadav527
@nikhilyadav527 Жыл бұрын
my close button doesnt work please help
@daddy.69.
@daddy.69. 2 жыл бұрын
@KoreanBronzeIV
@KoreanBronzeIV 3 жыл бұрын
Tyler do you know these bots in the comments?
@DariuszMakowski
@DariuszMakowski Жыл бұрын
wheres git with source?
@gunnardeangelo7384
@gunnardeangelo7384 3 жыл бұрын
So Nice 💘💘💘💘💘💘
@andresaguilar4409
@andresaguilar4409 2 жыл бұрын
ok
@ricobuttonpusher7061
@ricobuttonpusher7061 3 жыл бұрын
It doesnt work anymore.
@davidholden6293
@davidholden6293 Жыл бұрын
where is the code bro?
@alidante5648
@alidante5648 3 жыл бұрын
Need lovely 😍💋 💝💖❤️
@erickfiorek8455
@erickfiorek8455 3 жыл бұрын
I'm single 😥😥😥😥😥
@umarkhan_khan
@umarkhan_khan 3 жыл бұрын
also i am
@laniakea1541
@laniakea1541 3 жыл бұрын
Someone who makes a react tutorial but cannot put the link to the code in the description does not deserve a like
@jacsdev
@jacsdev Жыл бұрын
Great
@utkumattaktas7994
@utkumattaktas7994 Жыл бұрын
Thank you!
@TylerPotts
@TylerPotts Жыл бұрын
You're welcome!
Learn React Portal In 12 Minutes By Building A Modal
12:11
Web Dev Simplified
Рет қаралды 232 М.
Click Outside to Close - React Hook
6:37
TK
Рет қаралды 59 М.
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 6 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 18 МЛН
Simple Modal popup with React js | React in tamil
17:15
UI Gems (React.js, Angular, Front end interview)
Рет қаралды 4,5 М.
Create a modal with React (Pop-up)
6:39
The Web School.
Рет қаралды 132 М.
Modal in ReactJS - Code a React Modal Tutorial using Hooks
18:26
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 461 М.
React Material UI Popup Dialog
33:35
CodAffection
Рет қаралды 155 М.
React Tutorial for Beginners
1:20:04
Programming with Mosh
Рет қаралды 2,7 МЛН
Create a Popup Modal with React Bootstrap - React Tutorial 9
6:57
Build a Popup With JavaScript
16:55
Web Dev Simplified
Рет қаралды 363 М.
React Animations just got better
8:05
developedbyed
Рет қаралды 89 М.
Build A Custom React JS Modal - Using Hooks (Pop-up Window)
12:27
Code Commerce
Рет қаралды 57 М.
Мы никогда не были так напуганы!
00:15
Аришнев
Рет қаралды 6 МЛН