How to build a basic, reusable react modal component with hooks, refs and create portal. That can be opened and closed by calling a function from the refs. Connect the modal component to a DOM node with create portal and be able to use modern react hooks.
Github: https://github.com/daryanka/react-modal