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.
@TJA919109 ай бұрын
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!
@jameslovell52013 жыл бұрын
Quick! Clear! Concise! An excellent tutorial, my friend!
@ghislainmitahi25842 жыл бұрын
really, i'm so happy to hear you again, i usually cach your french tutorials, this modal is all i wanted 🙏👌👌
@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
@turyahabwamark82 Жыл бұрын
Beautifully done... Using basic concepts, in a Clear and concise way bro
@thearxlive Жыл бұрын
I dont usually comment on yt tutorials, but this is the only modal video I felt useful. Thankyou!
@gautambedi5919 ай бұрын
This is exactly what I was looking for. Keep the good work going mate!
@kamichikora60352 жыл бұрын
As always, great work. Straight to the point
@tadeuvieira319 Жыл бұрын
Straight to the point. Perfect! You just got a follower.
@sumondatta6595 Жыл бұрын
You are superb!!! easily discuss and understandable code. Thank you so much.
@MrACrazyHobo2 жыл бұрын
Very easy tutorial, thanks for the source code!
@diegoguatemala52878 ай бұрын
I have been referencing to this video many times, thanks man
@juelmapereira42773 ай бұрын
Dude, this is so nice
@melisandem1735 Жыл бұрын
Thanks, just what I was looking for ! Very Helpful.
@alienfunbug2 жыл бұрын
Best modal video on youtube (or at least out of like 10 that I compared it with).
@inescherif5385 Жыл бұрын
short & clear ! thank u so much for that
@daviddeltoro4067 ай бұрын
Any way to make it so that it fades in and out smoothly?
@azashik56782 жыл бұрын
Nice Tutorial Sir . Quick And clear
@nehabhole111 ай бұрын
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.
@ankushmalik8257 Жыл бұрын
On clicking Open button, the modal is not opening. Can anyone please suggest?
@ashwinpatidar287811 ай бұрын
It is very helpful video for building Modal using Vanilla CSS. Thanks.
@rhul0017 Жыл бұрын
so which is the best method, using portals or using this approach?
@aanchaltripathy5985 Жыл бұрын
how can we delay the pop up message by a few milliseconds?
@fancybeing1296 Жыл бұрын
iam always scared to code an overlay but this video literally helped me in 5 mins
@souravdutta57032 жыл бұрын
wow!! you made creating modal so simple!!
@vincebraca7141 Жыл бұрын
how do you run that modal.js on terminal? be cause i use npm start but i can't start it
@eskimo60973 жыл бұрын
Thank you, you explained it so simply! Also, your accent is very cool :D
@TheWebSchool
3 жыл бұрын
Glad it helps ! The French accent never leaves ✌️
@User-nn9uw2 жыл бұрын
So simply, thank you dude
@user-xe2ku5zx3o Жыл бұрын
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.
@mihaibalan1917 Жыл бұрын
This helped me a lot. How can I make the content of my modal scrollable? (I have a photo gallery in the modal)
@samuelsonowo67076 ай бұрын
I have a target value to display but when i click submit the value no longer display. What can i do?
@muhammadjonortigaliyev30025 ай бұрын
Thanks bro it was really useful 👍👍👍
@polestudiosaroundtheworld3 жыл бұрын
Thank you, the tutorial is really clear! Just what I need.
@TheWebSchool
3 жыл бұрын
Glad to help
@danielmarx10563 жыл бұрын
Thanks for this video, really nice and simple explanation
@TheWebSchool
3 жыл бұрын
Glad it helps, and nice pic in front of the Hungarian Parliament mate ✔️
@maciejkrogulski9216 Жыл бұрын
good tutorial, but how can You animate this modal? Especially closing modal?
@samriddhabajpai18462 жыл бұрын
Thank you for the easiest explanation!!
@ABC-el3ql2 жыл бұрын
WOW!! Thank you so much from S.Korea!!
@BBoyXy2 жыл бұрын
Thank you, keep up the good work
@herbertrichard45614 ай бұрын
Very good tutorial, thank you ^^
@younesmansourbokhtache1182 жыл бұрын
Thank you so much, the tutorial is really clear
@PROTECHRAHUL Жыл бұрын
how can we do it on onload
@DS-qz2gu6 ай бұрын
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?
@Greenlight1233 жыл бұрын
Thanks. That is exactly what i was looking for. A Point of Reference
@TheWebSchool
3 жыл бұрын
Great 🔥
@s1sko711 ай бұрын
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?
@kamamedia35352 жыл бұрын
thanks man, really nice n cool to implement
@chiomaubaezuonu3875 Жыл бұрын
You're amazing
@ziyaulrana18403 жыл бұрын
Very simple and easy method Thanks for motivation
@TheWebSchool
3 жыл бұрын
I appreciate ✌️
@ice12328 Жыл бұрын
Excellent Example
@korkut315 ай бұрын
why do u say 'hoviley' insted of overlay
@Jonsy Жыл бұрын
This is great!! thank you so much
@harshgoyal7114 Жыл бұрын
Thankyou for your help
@0xBK201 Жыл бұрын
Thanks for this.
@iafofkhadze4628 Жыл бұрын
wow u made this super easy tho
@lucianoaraus8956 Жыл бұрын
Nice tutorial man!
@NeganSportNews Жыл бұрын
An excellent tutorial! Thank you so much.
@prasathj743611 ай бұрын
Excellent one. Thanks.
@phoneringhtone9711 Жыл бұрын
thank you my friend
@martinalvarez46637 ай бұрын
gracias perritoo sos crkack
@attilakovacs43642 жыл бұрын
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
2 жыл бұрын
nevermind I'm stupid,I added it to the modal-content section not in the '.modal' section,now it works!
@GameAnimevietsub8 ай бұрын
not working now :((
@diamondsky6605 Жыл бұрын
Wow même en anglais j'ai reconnu ta voix direct 😂 Je savais pas que tu avais une autre chaine
@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
@nicudomenti5235 Жыл бұрын
Nice video, thank you!
@matiasrocca47022 жыл бұрын
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
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
@Teodorant1 Жыл бұрын
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
Жыл бұрын
mine too not working
@ambitionhut2 жыл бұрын
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
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.
@ritchieways9495 Жыл бұрын
Thanks so much. You saved me
@gooddeveloper4 ай бұрын
it's really cool
@RaekhandiYoga Жыл бұрын
Thank you so much
@mohammedhassan-xc7nh Жыл бұрын
so short and so clear Im Arabian but I understood so much thx bro
@fola_azeez27 күн бұрын
thank you so much bro bro
@obioraukwuani3527 Жыл бұрын
Source Code Please
@sinclair1082 Жыл бұрын
Thank you!
@henzelsargsyan4302 Жыл бұрын
Thanks a lot!
@ashadulmridha42652 жыл бұрын
Wow man it's very Cool
@saibfps8929 Жыл бұрын
Thank you!!!
@gilbertorogel812 жыл бұрын
Help, i have the exact same code and modal is not showing :s
@TheWebSchool
2 жыл бұрын
Source code is in the description my friend
@venkateshkumar9600 Жыл бұрын
Thank you
@nagireddypanditi64293 жыл бұрын
Great tutorial!
@TheWebSchool
3 жыл бұрын
👍👍
@nischithr54282 жыл бұрын
Thank You! ☺☺
@augischadiegils.51092 жыл бұрын
❤️❤️❤️❤️
@julienchmelnik25582 жыл бұрын
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
2 жыл бұрын
This is mainly a problem with the path, check the name of your paths
@julienchmelnik2558
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
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";
@ashwinumbarkar66256 ай бұрын
Thanks .
@khan.hassan2 жыл бұрын
Thanks 👍
@worldclasscode18472 жыл бұрын
Great video ! :)
@worldclasscode1847
2 жыл бұрын
Contact me
@dev_catM2 жыл бұрын
Top!👍
@EminoMeneko2 жыл бұрын
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
2 жыл бұрын
Thanks, We speak English here :)
@sandeepdhungana66573 жыл бұрын
Great
@mega.pe4enka1472 жыл бұрын
красава
@TheNarstonerz Жыл бұрын
Sweet french accent
@korkut315 ай бұрын
there are 4 big mistakes. how dare u upload a video. u are junior level
@korkut315 ай бұрын
what is this heavy accent. it is hard to listen . ufff so bad.
Пікірлер: 110
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.
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!
Quick! Clear! Concise! An excellent tutorial, my friend!
really, i'm so happy to hear you again, i usually cach your french tutorials, this modal is all i wanted 🙏👌👌
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
Beautifully done... Using basic concepts, in a Clear and concise way bro
I dont usually comment on yt tutorials, but this is the only modal video I felt useful. Thankyou!
This is exactly what I was looking for. Keep the good work going mate!
As always, great work. Straight to the point
Straight to the point. Perfect! You just got a follower.
You are superb!!! easily discuss and understandable code. Thank you so much.
Very easy tutorial, thanks for the source code!
I have been referencing to this video many times, thanks man
Dude, this is so nice
Thanks, just what I was looking for ! Very Helpful.
Best modal video on youtube (or at least out of like 10 that I compared it with).
short & clear ! thank u so much for that
Any way to make it so that it fades in and out smoothly?
Nice Tutorial Sir . Quick And clear
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.
On clicking Open button, the modal is not opening. Can anyone please suggest?
It is very helpful video for building Modal using Vanilla CSS. Thanks.
so which is the best method, using portals or using this approach?
how can we delay the pop up message by a few milliseconds?
iam always scared to code an overlay but this video literally helped me in 5 mins
wow!! you made creating modal so simple!!
how do you run that modal.js on terminal? be cause i use npm start but i can't start it
Thank you, you explained it so simply! Also, your accent is very cool :D
@TheWebSchool
3 жыл бұрын
Glad it helps ! The French accent never leaves ✌️
So simply, thank you dude
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.
This helped me a lot. How can I make the content of my modal scrollable? (I have a photo gallery in the modal)
I have a target value to display but when i click submit the value no longer display. What can i do?
Thanks bro it was really useful 👍👍👍
Thank you, the tutorial is really clear! Just what I need.
@TheWebSchool
3 жыл бұрын
Glad to help
Thanks for this video, really nice and simple explanation
@TheWebSchool
3 жыл бұрын
Glad it helps, and nice pic in front of the Hungarian Parliament mate ✔️
good tutorial, but how can You animate this modal? Especially closing modal?
Thank you for the easiest explanation!!
WOW!! Thank you so much from S.Korea!!
Thank you, keep up the good work
Very good tutorial, thank you ^^
Thank you so much, the tutorial is really clear
how can we do it on onload
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?
Thanks. That is exactly what i was looking for. A Point of Reference
@TheWebSchool
3 жыл бұрын
Great 🔥
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?
thanks man, really nice n cool to implement
You're amazing
Very simple and easy method Thanks for motivation
@TheWebSchool
3 жыл бұрын
I appreciate ✌️
Excellent Example
why do u say 'hoviley' insted of overlay
This is great!! thank you so much
Thankyou for your help
Thanks for this.
wow u made this super easy tho
Nice tutorial man!
An excellent tutorial! Thank you so much.
Excellent one. Thanks.
thank you my friend
gracias perritoo sos crkack
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
2 жыл бұрын
nevermind I'm stupid,I added it to the modal-content section not in the '.modal' section,now it works!
not working now :((
Wow même en anglais j'ai reconnu ta voix direct 😂 Je savais pas que tu avais une autre chaine
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
Nice video, thank you!
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
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
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
Жыл бұрын
mine too not working
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
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.
Thanks so much. You saved me
it's really cool
Thank you so much
so short and so clear Im Arabian but I understood so much thx bro
thank you so much bro bro
Source Code Please
Thank you!
Thanks a lot!
Wow man it's very Cool
Thank you!!!
Help, i have the exact same code and modal is not showing :s
@TheWebSchool
2 жыл бұрын
Source code is in the description my friend
Thank you
Great tutorial!
@TheWebSchool
3 жыл бұрын
👍👍
Thank You! ☺☺
❤️❤️❤️❤️
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
2 жыл бұрын
This is mainly a problem with the path, check the name of your paths
@julienchmelnik2558
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
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";
Thanks .
Thanks 👍
Great video ! :)
@worldclasscode1847
2 жыл бұрын
Contact me
Top!👍
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
2 жыл бұрын
Thanks, We speak English here :)
Great
красава
Sweet french accent
there are 4 big mistakes. how dare u upload a video. u are junior level
what is this heavy accent. it is hard to listen . ufff so bad.