#4 useFocusTrap

hard
react
event listeners
hooks

Implement useFocusTrap hook that returns a ref that you we can assign to a DOM element which will trap focus. Anything outside that element, will no longer be able to receive focus.

const { ref } = useFocusTrap();