Build A Custom React JS Modal - Using Hooks (Pop-up Window)

preview_player
Показать описание
Build A Modal in React! In this video I will share with you how to build a custom modal (pop-up) in React JS. We will be using the useState hook to toggle our modal and custom css for the styling. The stopPropagation function is implemented to be able to close the modal by clicking outside of the modal! Hope you guys like it and thank you for watching - feedback welcomed!

ZeroTo Mastery:

Coding Challenges!

👨‍💻 Github 👨‍💻

🔥 My Coding Equipment 🔥

☕ Buy me a Coffee ☕

Instagram 💪
Рекомендации по теме
Комментарии
Автор

Helped me get past a bug i've been stuck on for a minute. Thank you!

davidfedchuk
Автор

watched a lot of tutorials, your fast but clear and explain it easy enough to understand. thanks video rocks

cryptonicchronic
Автор

clear concise and put in an easy way. this is the best one

eliud_karuga
Автор

Great video! I'm using this to build out my portfolio website and this is a big help!

onthegocode
Автор

HI. I'm a S.Korean fan of yours.
Your video is very useful to me.
Especially, the tip for part 'stopPropagation()' was very good.
Thank you so much!

ABC-elql
Автор

Really Great video champ. Thank you! 🏆

Gajanan
Автор

Thank you! This was exactly what I was looking for! Simple and concise! New Sub!

allanfernz
Автор

Thank you so much for this helpful video!

vudlvnl
Автор

Im guessing the stopPropagation() was needed because our modal content was nested inside the overly content??
I've seen prior modal examples where overlay and modal sit adjacently and hence never use stopPropagaion.

However, I do like the nested order of things, seems seems more semantically correct and intuitive.

jritzeku
Автор

Capo!!!! bien explicado, simple y SIN librerias!!!!

fernandogomez
Автор

Your videos have taught me a lot man, thank you!

dagi_works
Автор

Great video as always, thanks man! I'm having some trouble getting the overlay to work because I am using this to display a menu that is nested in my navbar. So, the open icon is in Navbar.jsx, it opens the modal via Menu.jsx, and hence the 'overlay' only takes on the size of the menu and not the full background. Seems like this method only works if you build it directly in app.js, is that correct?

feastofsteven
Автор

this kind of video are so helpful, tranks man!

ulisesmak
Автор

thanks a bunch, will be applyng this one with context and some data coming from sanity

kennedyfreitas
Автор

thank you so much you really saved my time

fullkanks
Автор

Thank you man it is awesome. I appreciate it

rbmax
Автор

Exactly what i need! Thanks man! Abraço!

viniciusm.m.
Автор

In my react code there is notification too many rerenders i cant fix it

jeryngungan
Автор

It’s a really really helpful video❤️❤️

faisalahmad
Автор

Confirmation should always be on the right and cancellation on the left...

BlazingTyphlosion