Create a modal with React (Pop-up)

  Рет қаралды 142,623

The Web School.

The Web School.

Күн бұрын

Source code : github.com/Zir...

Пікірлер: 117
@TJA91910
@TJA91910 11 ай бұрын
I've referenced this video countless times for a variety of projects. Thank you for taking the time to put this together, you are a true hero!
@streetrat7050
@streetrat7050 3 жыл бұрын
Thank you so much for your contribution. I have spent far too long now trying to find an example that is simple, direct and to the point.
@jameslovell5201
@jameslovell5201 3 жыл бұрын
Quick! Clear! Concise! An excellent tutorial, my friend!
@johntalatala680
@johntalatala680 7 күн бұрын
I was looking something like this to insert into my project, Merci infiniment monsieur pour cette contribution. Vous etes magnifique!
@alienfunbug
@alienfunbug 2 жыл бұрын
Best modal video on youtube (or at least out of like 10 that I compared it with).
@ghislainmitahi2584
@ghislainmitahi2584 2 жыл бұрын
really, i'm so happy to hear you again, i usually cach your french tutorials, this modal is all i wanted 🙏👌👌
@thearxlive
@thearxlive Жыл бұрын
I dont usually comment on yt tutorials, but this is the only modal video I felt useful. Thankyou!
@Miguel_ECL
@Miguel_ECL 25 күн бұрын
Great quick & clear explanation! Thanks!
@lightsabercatspowpow
@lightsabercatspowpow Жыл бұрын
Very very great video. You simplified this down to clean concise code that was very easy to follow. The css styling being done ahead of time helps a lot aswell because this video was how to make it work not how to make it pretty so thanks for getting that done outside the actual content! 10/10
@gautambedi591
@gautambedi591 Жыл бұрын
This is exactly what I was looking for. Keep the good work going mate!
@turyahabwamark82
@turyahabwamark82 Жыл бұрын
Beautifully done... Using basic concepts, in a Clear and concise way bro
@eskimo6097
@eskimo6097 3 жыл бұрын
Thank you, you explained it so simply! Also, your accent is very cool :D
@TheWebSchool
@TheWebSchool 3 жыл бұрын
Glad it helps ! The French accent never leaves ✌️
@sumondatta6595
@sumondatta6595 Жыл бұрын
You are superb!!! easily discuss and understandable code. Thank you so much.
@danielmarx1056
@danielmarx1056 3 жыл бұрын
Thanks for this video, really nice and simple explanation
@TheWebSchool
@TheWebSchool 3 жыл бұрын
Glad it helps, and nice pic in front of the Hungarian Parliament mate ✔️
@tadeuvieira319
@tadeuvieira319 Жыл бұрын
Straight to the point. Perfect! You just got a follower.
@melisandem1735
@melisandem1735 Жыл бұрын
Thanks, just what I was looking for ! Very Helpful.
@kamichikora6035
@kamichikora6035 2 жыл бұрын
As always, great work. Straight to the point
@ashwinpatidar2878
@ashwinpatidar2878 Жыл бұрын
It is very helpful video for building Modal using Vanilla CSS. Thanks.
@diegoguatemala5287
@diegoguatemala5287 10 ай бұрын
I have been referencing to this video many times, thanks man
@MrACrazyHobo
@MrACrazyHobo 2 жыл бұрын
Very easy tutorial, thanks for the source code!
@AdarshYadav-cf9be
@AdarshYadav-cf9be Ай бұрын
Thankyou so much brother i was suffering from so many problems thankyou so much...😢
@Greenlight123
@Greenlight123 3 жыл бұрын
Thanks. That is exactly what i was looking for. A Point of Reference
@TheWebSchool
@TheWebSchool 3 жыл бұрын
Great 🔥
@juelmapereira4277
@juelmapereira4277 6 ай бұрын
Dude, this is so nice
@NeganSportNews
@NeganSportNews Жыл бұрын
An excellent tutorial! Thank you so much.
@inescherif5385
@inescherif5385 Жыл бұрын
short & clear ! thank u so much for that
@fancybeing1296
@fancybeing1296 Жыл бұрын
iam always scared to code an overlay but this video literally helped me in 5 mins
@ABC-el3ql
@ABC-el3ql 2 жыл бұрын
WOW!! Thank you so much from S.Korea!!
@User-nn9uw
@User-nn9uw 2 жыл бұрын
So simply, thank you dude
@polestudiosaroundtheworld
@polestudiosaroundtheworld 3 жыл бұрын
Thank you, the tutorial is really clear! Just what I need.
@TheWebSchool
@TheWebSchool 3 жыл бұрын
Glad to help
@nehabhole1
@nehabhole1 Жыл бұрын
Great, quick tutorial for building modals however doesn't address event propagation. I build a form inside a modal and on click it closes the form.
@s1sko7
@s1sko7 Жыл бұрын
Excellent!! :) But 2 things : 1 ) Why bother with State when you can just pass an "active-modal" class to body and handle everything with CSS? 2) Studies shows that a lot of people would click on the previous button of their browser when modal shows up. So we should prevent that maybe with a new page direction. Thoughts?
@mohammedhassan-xc7nh
@mohammedhassan-xc7nh Жыл бұрын
so short and so clear Im Arabian but I understood so much thx bro
@diamondsky6605
@diamondsky6605 Жыл бұрын
Wow même en anglais j'ai reconnu ta voix direct 😂 Je savais pas que tu avais une autre chaine
@azashik5678
@azashik5678 3 жыл бұрын
Nice Tutorial Sir . Quick And clear
@DS-qz2gu
@DS-qz2gu 9 ай бұрын
When I learned React, I learned that when you modify the current state to set a new state (e.g., negating a value to toggle boolean state), there’s a specific syntax to ensure that you get the current state instead of risking using a previous version of the state. Instead of this: setModal(!modal); You’d use this: setModal((prevModal) => !prevModal); Is this true? Is it just not important in this use case?
@ziyaulrana1840
@ziyaulrana1840 3 жыл бұрын
Very simple and easy method Thanks for motivation
@TheWebSchool
@TheWebSchool 3 жыл бұрын
I appreciate ✌️
@samriddhabajpai1846
@samriddhabajpai1846 2 жыл бұрын
Thank you for the easiest explanation!!
@FleekGaming2411
@FleekGaming2411 2 ай бұрын
Thank You It's working!
@herbertrichard4561
@herbertrichard4561 7 ай бұрын
Very good tutorial, thank you ^^
@muhammadjonortigaliyev3002
@muhammadjonortigaliyev3002 7 ай бұрын
Thanks bro it was really useful 👍👍👍
@BBoyXy
@BBoyXy 3 жыл бұрын
Thank you, keep up the good work
@younesmansourbokhtache118
@younesmansourbokhtache118 2 жыл бұрын
Thank you so much, the tutorial is really clear
@gilbertorogel81
@gilbertorogel81 3 жыл бұрын
Help, i have the exact same code and modal is not showing :s
@TheWebSchool
@TheWebSchool 3 жыл бұрын
Source code is in the description my friend
@IroshanaRavishan
@IroshanaRavishan 21 күн бұрын
Really helpful...! Thank you
@slamanaim1837
@slamanaim1837 Жыл бұрын
thank you it is what i want to know how to create a modal that is shown when i login my bank account. it contains points that turn and text please wait before showin my bank receipt
@0xBK201
@0xBK201 Жыл бұрын
Thanks for this.
@souravdutta5703
@souravdutta5703 3 жыл бұрын
wow!! you made creating modal so simple!!
@iafofkhadze4628
@iafofkhadze4628 2 жыл бұрын
wow u made this super easy tho
@maciejkrogulski9216
@maciejkrogulski9216 Жыл бұрын
good tutorial, but how can You animate this modal? Especially closing modal?
@ankushmalik8257
@ankushmalik8257 Жыл бұрын
On clicking Open button, the modal is not opening. Can anyone please suggest?
@mihaibalan1917
@mihaibalan1917 Жыл бұрын
This helped me a lot. How can I make the content of my modal scrollable? (I have a photo gallery in the modal)
@Jonsy
@Jonsy 2 жыл бұрын
This is great!! thank you so much
@ice12328
@ice12328 Жыл бұрын
Excellent Example
@daviddeltoro406
@daviddeltoro406 10 ай бұрын
Any way to make it so that it fades in and out smoothly?
@chiomaubaezuonu3875
@chiomaubaezuonu3875 Жыл бұрын
You're amazing
@EvGen-e2d
@EvGen-e2d Жыл бұрын
Ok the problem is what if my modal bigger height then viewport? overflow-y: scroll; doesn't help because it has different scroll and scrolls much slower then body scroll.
@kamamedia3535
@kamamedia3535 2 жыл бұрын
thanks man, really nice n cool to implement
@aanchaltripathy5985
@aanchaltripathy5985 Жыл бұрын
how can we delay the pop up message by a few milliseconds?
@harshgoyal7114
@harshgoyal7114 Жыл бұрын
Thankyou for your help
@thehitlist4046
@thehitlist4046 14 күн бұрын
Please how do you enable intellisense like when you did div.modal
@prasathj7436
@prasathj7436 Жыл бұрын
Excellent one. Thanks.
@ambitionhut
@ambitionhut 2 жыл бұрын
This doesent work sadly on my end. The idea of creating both the button and modal in the same component only works if its like you example. But what if the button is on the navbar? when I do it, the modal pops up inside the navbar..
@TheWebSchool
@TheWebSchool 2 жыл бұрын
Hey, yeah it was for the purpose of the video. Most of the time we use the context API or redux or whatever state manager to handle the triggering of a modal.
@samuelsonowo6707
@samuelsonowo6707 9 ай бұрын
I have a target value to display but when i click submit the value no longer display. What can i do?
@nagireddypanditi6429
@nagireddypanditi6429 3 жыл бұрын
Great tutorial!
@TheWebSchool
@TheWebSchool 3 жыл бұрын
👍👍
@phoneringhtone9711
@phoneringhtone9711 Жыл бұрын
thank you my friend
@ritchieways9495
@ritchieways9495 Жыл бұрын
Thanks so much. You saved me
@nicudomenti5235
@nicudomenti5235 Жыл бұрын
Nice video, thank you!
@martinalvarez4663
@martinalvarez4663 9 ай бұрын
gracias perritoo sos crkack
@gooddeveloper
@gooddeveloper 7 ай бұрын
it's really cool
@korkut31
@korkut31 7 ай бұрын
why do u say 'hoviley' insted of overlay
@lucianoaraus8956
@lucianoaraus8956 Жыл бұрын
Nice tutorial man!
@Teodorant1
@Teodorant1 2 жыл бұрын
I downloaded the project and copied the components file and put it into my SRC file, and imported it the same way into my app.js, I couldn't get it to work. Please help!
@surjeetsingh5821
@surjeetsingh5821 Жыл бұрын
mine too not working
@rhul0017
@rhul0017 Жыл бұрын
so which is the best method, using portals or using this approach?
@ashadulmridha4265
@ashadulmridha4265 2 жыл бұрын
Wow man it's very Cool
@PROTECHRAHUL
@PROTECHRAHUL 2 жыл бұрын
how can we do it on onload
@sinclair1082
@sinclair1082 Жыл бұрын
Thank you!
@attilakovacs4364
@attilakovacs4364 2 жыл бұрын
ty great video,one question though,how do I enable scrolling in the modal? I added overflow-y: auto or scroll but it doesnt work.
@attilakovacs4364
@attilakovacs4364 2 жыл бұрын
nevermind I'm stupid,I added it to the modal-content section not in the '.modal' section,now it works!
@GameAnimevietsub
@GameAnimevietsub 11 ай бұрын
not working now :((
@henzelsargsyan4302
@henzelsargsyan4302 Жыл бұрын
Thanks a lot!
@fola_azeez
@fola_azeez 3 ай бұрын
thank you so much bro bro
@EminoMeneko
@EminoMeneko 3 жыл бұрын
Super bien expliqué mais chez moi ça ne crée pas la modale. React dev tools me permet de voir que le state toggle mais rien ne s'affiche. En fait c'est parce que je part des templates depuis le site de Bootstrap et que le code ne marche pas tout à fait de la même manière. En tout cas ça a répondu à la question que je me posais.
@TheWebSchool
@TheWebSchool 3 жыл бұрын
Thanks, We speak English here :)
@vincebraca7141
@vincebraca7141 Жыл бұрын
how do you run that modal.js on terminal? be cause i use npm start but i can't start it
@venkateshkumar9600
@venkateshkumar9600 Жыл бұрын
Thank you
@matiasrocca4702
@matiasrocca4702 2 жыл бұрын
Hey!! Im having trouble with the overlay toggle on the overlay div. It is also executing the function when clicking inside the popup component (which kinda makes sense, since the component is within the overlay div). Does anybody know how may I fix this?
@matiasrocca4702
@matiasrocca4702 2 жыл бұрын
Im not being able to call the function only while clicking the overlay (outside part of the box), im also calling it when clicking on the inside. This is a problem, because im trying to fill a form inside the component
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
Great video ! :)
@worldclasscode1847
@worldclasscode1847 2 жыл бұрын
Contact me
@ashwinumbarkar6625
@ashwinumbarkar6625 9 ай бұрын
Thanks .
@nischithr5428
@nischithr5428 2 жыл бұрын
Thank You! ☺☺
@julien25585
@julien25585 2 жыл бұрын
How can i fix this error: "./src/App.js Module not found: Can't resolve './Components/Modal/Modal' in 'C:\Users\user\Desktop\Test\Test\src'" i use this import: "import Modal from './Components/Modal/';"
@TheWebSchool
@TheWebSchool 2 жыл бұрын
This is mainly a problem with the path, check the name of your paths
@julien25585
@julien25585 2 жыл бұрын
@@TheWebSchool Maybe i dont understand bcs im kinda new to do programming. I use a relative path, it should be okay then or not? Actually i have no clue how to fix this :/
@hamidrezarahimi6651
@hamidrezarahimi6651 2 жыл бұрын
If your folders structure is the same as what was explained in the video, you should add the Component file to your import statement as well. With that being said, you have to update your import to: import Modal from "./Components/Modal/Modal";
@dev_catM
@dev_catM 2 жыл бұрын
Top!👍
@TheNarstonerz
@TheNarstonerz Жыл бұрын
Sweet french accent
@ora_ukFelix
@ora_ukFelix Жыл бұрын
Source Code Please
@augischadiegils.5109
@augischadiegils.5109 2 жыл бұрын
❤️❤️❤️❤️
@sandeepdhungana6657
@sandeepdhungana6657 3 жыл бұрын
Great
@Boltkiller96
@Boltkiller96 Ай бұрын
0:29 and we are going to fk us
@mega.pe4enka147
@mega.pe4enka147 2 жыл бұрын
красава
@korkut31
@korkut31 7 ай бұрын
there are 4 big mistakes. how dare u upload a video. u are junior level
@korkut31
@korkut31 7 ай бұрын
what is this heavy accent. it is hard to listen . ufff so bad.
@RaekhandiYoga
@RaekhandiYoga Жыл бұрын
Thank you so much
@khan.hassan
@khan.hassan 3 жыл бұрын
Thanks 👍
@saibfps8929
@saibfps8929 Жыл бұрын
Thank you!!!
Create a Modal With React Portals
13:11
Nikita Dev
Рет қаралды 5 М.
dialog = the easiest way to make a popup modal
9:40
Kevin Powell
Рет қаралды 193 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
My Daughter's Dumplings Are Filled With Coins #funny #cute #comedy
00:18
Funny daughter's daily life
Рет қаралды 12 МЛН
Как мы играем в игры 😂
00:20
МЯТНАЯ ФАНТА
Рет қаралды 3,3 МЛН
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 40 МЛН
They made React great again?
4:11
Fireship
Рет қаралды 1 МЛН
Learn React Portal In 12 Minutes By Building A Modal
12:11
Web Dev Simplified
Рет қаралды 238 М.
Best Way to Add Popup Modals in React
26:19
Colby Fayock
Рет қаралды 8 М.
Modal in ReactJS - Code a React Modal Tutorial using Hooks
18:26
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,7 МЛН
Create Tabs with React !
7:06
The Web School.
Рет қаралды 115 М.
Search Filter in React JS - Filter Through Results
8:53
Code Commerce
Рет қаралды 155 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17