I\'m trying to create a modal in React JS
I have one outter div which is the whole body and I have I inner div. I want to apply the function to close the modal if it
You could use JS Event.stopPropagation to prevent event from bubbling to the parent if inner element is clicked.