In this video I will tech you how to create a custom modal component in react using createPortal, useRef and we will close modal when click outside the modal .
Chapters -
00:00 - Introduction
01:10 - create Modal component
08:23 - createPortal in react
14:56 - detect click outside modal (for close modal)
connect with me on -
facebook : / mukesh.phulwani.5
instagram : / mukeshphulwani66
linkedin: / mukesh-phulwani-681450152
github: https://github.com/mukeshphulwani66
codersneverquit website : https://www.codersneverquit.in/