Skip to content

useModal hook

The useModal hook is a custom React hook that returns the functions to manage the parent modal state.

Returned values

  • closeModal: function - A function to close the modal.