Wrote an article
https://dev.to/link2twenty/react-using-portals-to-make-a-modal-2kdf