• A react hook that allows clearing the modal state.

    Example

    function MyComponent() {
    const clearModal = useClearModal();
    return (
    <button onClick={clearModal}>Close Modal</button>
    )
    }

    Returns

    A function that clears the modal state.

    Returns (() => void)

      • (): void
      • Returns void

Generated using TypeDoc