Check out my blog post on keyboard accessibility for modals in React.
https://dev.to/colettewilson/how-i-approach-keyboard-accessibility-for-modals-in-react-152p
https://dev.to/colettewilson/how-i-approach-keyboard-accessibility-for-modals-in-react-152p