score:2

Accepted answer

use the open prop to programmatically open or close the modal

<modal
  open={ismodalopen}
  ...
/>

ref: https://react-materialize.github.io/react-materialize/?path=/story/javascript-modal--default


Related Query

More Query from same tag