Guest User

Untitled

a guest
Feb 16th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. import FocusLock from 'react-focus-lock';
  2.  
  3. const JailForAFocus = ({onClose}) => (
  4. <FocusLock>
  5. You can not leave this form
  6. <button onClick={onClick} />
  7. </FocusLock>
  8. );
Add Comment
Please, Sign In to add comment