I had to come out here from a well known udemy course.... your explanations was amazing
@FullstackSimplified2 жыл бұрын
Glad it helped. Thanks for watching
@SaadMahimkar Жыл бұрын
same here
@akashbose36823 жыл бұрын
Well explained 👍
@FullstackSimplified3 жыл бұрын
Thanks alot
@KAMIL-jc8nn Жыл бұрын
Great tutorial
@FullstackSimplified Жыл бұрын
Thank you! Cheers!
@azaamabubacker Жыл бұрын
Well explained
@FullstackSimplified Жыл бұрын
Glad it helped. Thanks for watching
@avertry95292 жыл бұрын
I noticed you had modal : 100% can you not use vh vw? I've used modals in react without portal.
@FullstackSimplified2 жыл бұрын
Absolutely you can use modal without portal. But at times you have situations where you don’t want to render a modal deep inside a nested dom but also want to keep the parent child relationship intact. In these cases portal seems to be much handy. More over you always want your modal to be above all the contents. Using css will just make it visible at the top but eventually your modal will be nested deep inside decreasing the accessibility of your website.
Position fixed would add the modal to the under the same patent which we do not want portal doesn't only gives us styling options but also provides us the way to render elements out side the nested dom tree.