react-modal-manager
Show react modals using async/await
Create a modal manager and render the component
Component modalManager = ; { return <div> /*...*/ modalManagercomponent </div> }
Use async/await to show modals
handleShowModal = async { //Show the modal and await for the user to close it const modal = await thismodalManager; ifmodalresult === true ; else ; }