React.js mdbottstrap show Modal with click

According to this MDB page, the property used to dictate whether or not a modal is being shown is not show, but rather isOpen. Change

<MDBModal show={showModal} onHide={handleClose}>

To

<MDBModal isOpen={showModal} onHide={handleClose}>

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top