check if modal is closed react function code example Example: check if modal hide jquery alert($('#registration-exams-modal').hasClass('show'));